Send attachment from third party to Servicenow using the scripted rest api

Tejaswini9
Tera Expert

Hello Guys,

Can anyone please explain me the process of sending the attachment from third party to servicenow 

1) Please explain me what should be the format of the attachments when we try to send the attachment from the 3rd party( ex: Postman)

2) we also need to restrict the attachment file type and filesize

 

Please guide me!!

Thanks,

Bhavana

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Here is a solution I shared 5months ago for Scripted REST API.

You can consider that and enhance the requirement.

In that you can restrict based on file type as well

Scripted Rest API to update incident with attachment

Regards
Ankur

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

@Tejaswini 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

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