Attachment API for Excel Files to RITMS

GloriousWater
Giga Contributor

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!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@GloriousWater 

you can use Attachment API to attach file to RITM

Attachment API

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.

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@GloriousWater 

you can use Attachment API to attach file to RITM

Attachment API

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.

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