Netsuit Attachment to servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 04:47 AM
Hi,
How to fetch attachments in API Netsuite to SN?
Can anyone help us!
Thanks In Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 06:11 AM
Hi @Ankita Koche1 ,
Attachments are saved in sys_attachment table and have a separate API to retrieve them.
Meta information on attachment is retrieved using the /now/attachment/{sys_id} API. {sys_id} here is the sys_id in the sys_attachment table.
To retrieve the content of an attachment, use the /now/attachment/{sys_id}/file
Attachment APIs can be tested from REST API Explorer. To download the attachment content, use the "Retrieve attachment content (GET)" method. The generated sample code, also, doesn't contain content-type headers so the retrieved file may not come out correct. Be sure to add the content-type when downloading binary files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 06:41 AM
Hi @Ankita Koche1 ,