Netsuit Attachment to servicenow

Ankita Koche1
Tera Contributor

AnkitaKoche1_0-1700570684483.png

Hi,

How to fetch attachments in API Netsuite to SN?

Can anyone help us!

 

Thanks In Advance. 

2 REPLIES 2

Community Alums
Not applicable

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.

SandeepDutta_0-1700575891112.png

 

Community Alums
Not applicable

Hi @Ankita Koche1 ,