Forum Discussion
Aleksandar_A
4 years agoContributor III
Hi @Harsha3,
If you want to access the binary file, there is a specific endpoint to do that:
https://instance.servicenow.com/api/now/attachment/{sys_id}/file
For more informations and guidelines head over to:
Attachment API | ServiceNow
Once you got the response you need to map it and change the output view on the Mapper Snap to binary, the mapping is shown below:
And then you can use the CSV Parser Snap to parse the content.
Let me know if this helps you,
BR Aleksandar.
- Harsha34 years agoNew Contributor III
Thanks for the reply, however, there is a 502 error when I am trying to invoke a REST API call. I got the sysid of the task but unfortunately, I could not proceed further.
Thanks,
Harshavardhana- Karuna_M4 years agoNew Contributor
Hello Harsha,
In the Rest Get Snap use the Response Entity Type as Binary and that should let you download the file.
Thanks