Does ServiceNow Outbound REST support sending attachments as multipart/form-data files

aphaugat
Tera Expert

Has anyone successfully used sn_ws.RESTMessageV2 to send attachments as multipart/form-data (not Base64) to an external API? If so, was it achieved using only supported ServiceNow APIs, or did it require custom workaround?

 

No help from - https://www.servicenow.com/community/itsm-forum/send-attachment-through-rest-api-if-content-type-is-...

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @aphaugat 

 

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

https://www.servicenow.com/community/servicenow-ai-platform-forum/outbound-rest-multipart-form-data/...

https://www.servicenow.com/community/developer-forum/send-a-base-64-file-with-rest-message-multipart...

Saving RESTMessageV2 Responses as Attachments

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Ankur Bawiskar
Tera Patron

@aphaugat 

yes I had successfully sent multi-part form data content type including attachment for DocuSign many years ago

So platform supports that

check below

Multipart/form-data attachment pusg using Rest API from Snow->Jira 

Outbound REST - Multipart/form-data 

REST API attachments Transfer to JIRA 

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