Need to create the scripted rest api for Attachment

Naga19
Tera Contributor

Hello everyone, 

 

Could you please help me to create the Scripted rest api for attachment and let us know what are steps to that need to follow.

 

Regards, 

Naga

4 REPLIES 4

Aman Kumar S
Kilo Patron

You can follow below article:

How to create a Scripted REST API to attachment?

Best Regards
Aman Kumar

asifnoor
Kilo Patron

Hello Naga,

Go to Rest API Explorer, and on left side, select Attachment instead of Table API. Then you will see the Attachment API and you can also download a servicenow Script form there.

REf: https://developer.servicenow.com/dev.do?_escaped_fragment_=/reference/api/orlando/rest/r_AttachmentA...

https://community.servicenow.com/community?id=community_question&sys_id=fbb9fa9e1bec9010d01143f6fe4b...

Mark the comment as a correct answer and also helpful if this has helped to solve the problem.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I have shared solution here; try to enhance it further

Scripted Rest API to update incident with attachment

Regards
Ankur

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

@Naga

Thank you for marking my response as helpful.

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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader