Sending attachment as Multipart Form Post

kuntal_mandal
Tera Contributor

We are trying to send attachments from our service-now instance to a third party system. The third party system accepts only multipart form post. I can send attachments to the third party application using postman successfully. But have not been able to achieve this using service-now yet. I intend to trigger the process via a business rule using REST.

I have seen an old community post saying "service-now does not support multipart form post".

https://community.servicenow.com/community?id=community_question&sys_id=c78487a9dbd8dbc01dcaf3231f96...

This is an old post but not sure what is the ground reality now. We are using REST for this integration. It would be great if you can share your experience that might help me to find an answer. Thanks in advance.

3 REPLIES 3

Ct111
Giga Sage

Check this HI article

https://hi.service-now.com/kb_view.do?sysparm_article=KB0745010

 

or 

IF wanna try via Attachment API then check this

https://docs.servicenow.com/integrate/inbound_rest/reference/r_SamplePOSTMultipart.html

Mark my ANSWER as CORRECT and HELPFUL if applicable.

kuntal_mandal
Tera Contributor

Thank you. we don't have the integration hub so can't try the first one. I will try the second one but the third party system is no service-now.
Just wondering if this can be done using the REST/scripted REST API call. Thank you

Aleksas Kucins1
Giga Expert

You can send binary attachments from ServiceNow to other platforms with multipart withouth integrations hub, however it is pretty complicated. This article explains it:

https://servicenowthink.wordpress.com/2020/04/13/how-to-send-binary-data-with-multipart-from-service...