Outbound Multipart form-data attachments

Swetang
Tera Contributor

Hi,

 

I have been trying to post a multipart form data to a third party REST API using the below link:

 

https://developer.servicenow.com/connect.do#!/share/contents/8774514_multipart_upload_helper?v=1&t=PRODUCT_DETAILS

 

This works fine for one of my integrations. For the current integrations it works perfectly fine for text,xml and pdf formats.
However, it is not able to post excel,png and jpegs. The file gets posted properly to the external API. However we are not able to open it. Below is the format of multipart data that i have been using. The rest calls are going through a MID server.

ANy help would be really appreciated:

find_real_file.png

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Refer below links for help

How to send Outbound REST request with multipart/form-data

Outbound REST - Multipart/form-data

Regards
Ankur

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