Which method to use to send Attachments to ServiceNow from an external tool?

Suggy
Giga Sage

We are building an integration with an external tool.

 

They will create incidents and send attachemnts to ServiceNow. They are asking to share the API details for Attachments.

 

In ServiceNow there are 2 APIs for attachments - binary and multipart.

 

Which method is preferred to be shared with that team? Which is widely used?

 

Suggy_0-1706898916616.png

 

1 ACCEPTED SOLUTION

Hi @Suggy   multipart post is recommended.

 

If this answer solved your issue please mark it as a solution or mark it 👍 helpful if it was of help.

--

Bala Guthy

View solution in original post

5 REPLIES 5

Suggy
Giga Sage

.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Suggy 

 

https://docs.servicenow.com/bundle/vancouver-api-reference/page/integrate/inbound-rest/concept/c_Att...

 

LearnNGrowAtul_0-1706966258210.pngLearnNGrowAtul_1-1706966281474.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

BalaG
Kilo Sage

Hi @Suggy   since we are talking about APIs and not actual forms on a HTML page,  the main difference is the size of files that can be uploaded. Multipart form works for small to mid sized files. Binary request method should be used for large files.

 

hope this helps

--

Bala Guthy

If this answer solved your issue please mark it as a solution or mark it 👍 helpful if it was of help.

 

Hi @BalaG thanks for replying. but my question is which one to share with external team? which is generally used one?