Outbound Multipart form-data attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2020 08:28 PM
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:
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2020 09:11 PM
Hi,
Refer below links for help
How to send Outbound REST request with multipart/form-data
Outbound REST - Multipart/form-data
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader