How to create the scripted rest api for requested item with attachment

keshav77
Tera Contributor

Hello everyone, 

 

Could you please help me to know how to create Scripted rest api  where I want to create  requested item through it  of particular catalog and  want to add an attachment while creating the request through the rest api  kindly share me the steps to do this?

 

Regards, 

Keshav

1 REPLY 1

Ankur Bawiskar
Tera Patron

@keshav77 

I shared solution here few years ago, check that and enhance

Scripted rest api 

how to add file, ask 3rd party to send file name, content type, base64encoded data and then enhance it in above script only, check link below where I shared solution

Scripted Rest API to update incident with attachment 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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