Need Help with Attachments in integration

Swetha Guligari
Tera Contributor
Hi Team, I am working on Integration between servicenow and third party. Currently working on attachment part. I using scripted Rest API to create incident in servicenow. Third party is sending the JSON payload based on that incident is getting created. Now third party will be including attachment data in the same JSON payload. Based on that i would need to include attachment to the incident created. 1) can someone share the sample payload how third party need to send the file(s)(Attachment data in JSON format) info to service now API. 2)Can i use the same above scripted rest API for the attachment as well? Please help me with the input. Thanks, Swetha
7 REPLIES 7

Hi Ankur,

I have seen few posts where is it mentioned that we can send attachment data in multipart format to third party only if MID server is enabled or through rest step which we can get only if integration hub is enabled.

 

@Swetha Guligari 

but here you are receiving it and not sending it, so mid server doesn't come into picture.

I believe I already shared solution to your question.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

we would need to send attachment data as multipart as well. so wanted to understand is it mandatory to use mid server can't we send file data as multipart using a BR on sys_atachment table