Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to store image into sys_attachment table through scripted rest API?

SK36
Tera Contributor

Hi,

Can anyone help me with the sample code of how to store image into sys_attachment table using scripted rest API. 

also, help me how the request format would be.

Thanks in advance. 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

Hi,

I shared solution here on how to add file to incident via scripted REST API

enhance it for your requirement

Scripted Rest API to update incident with attachment

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron

Hi,

I shared solution here on how to add file to incident via scripted REST API

enhance it for your requirement

Scripted Rest API to update incident with attachment

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader