- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 01:45 AM
Hi, I could use some explaining on the attachment API.
My use-case is that I want to create a request in the service catalog, with 1 or more RITMS and then afterwards use the attachment API to attach an excel file to the RITM.
Bit unsure if I should use the binary file or multipart endpoint. I don't understand the difference.
Will the user be able to download the uploaded file as an excel file or will they need to convert it from the binary/multipart format back to an excel file before being able to read it?
Hope you can shed some light on it.
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 02:45 AM
you can use Attachment API to attach file to RITM
ServiceNow REST Attachment API Example Python Example
Another alternative is to create Scripted REST API and they can send the details
Refer below link where I have shared the solution
Scripted Rest API to update incident with attachment
sharing few external link also
Add Attachment to an Incident (REST API v2)
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 02:45 AM
you can use Attachment API to attach file to RITM
ServiceNow REST Attachment API Example Python Example
Another alternative is to create Scripted REST API and they can send the details
Refer below link where I have shared the solution
Scripted Rest API to update incident with attachment
sharing few external link also
Add Attachment to an Incident (REST API v2)
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader