Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

upload pdf from servicenow to Third party application

AnnalakshmiS
Tera Contributor

I'm having trouble sending an attachment. Despite setting the attachment format to multipart/form-data, I still can't get it to work. Could you please briefly guide me on this?

 

Content-Type: multipart/form-data; boundary=test

--test
Content-Disposition: form-data; name="object"
Content-Type: application/json
 
--test
Content-Disposition: form-data; name="content"; filename="{{fileName}}"
Content-Type: application/pdf

< example.pdf
--test--
1 REPLY 1

Ankur Bawiskar
Tera Patron

@AnnalakshmiS 

check below links

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