Service Now Ticket using API to download/upload attachment

Hello Team,

I am working on the project where I need to use API approach to fetch the tickets from the Service Now. I was able to use ‘Send HTTP Request’ to service now using the credentials successfully.

Also, I am getting the JSON result as per my expectation. I need to download the excel file attached into the serviceNow ticket.

Second part of automation, I need to respond to the ticket with text body and attachment.

Kindly provide your support to automate this part

Experts,please reply. @Anil_G , @pathrudu @Irtetala

@hacky

Did you happen to first try with postman if you are able to create a ticket then the curl can be copied and same can be imported into http request

please check on postman first

cheers

@Anil_G : I am working on intranet of my compnay. So things are already setup with Rest API Explorer for me. It is equivalent to Postman.

I am not sure how serviceNow ticket attachment can be downloaded

@hacky

if you are getting in response then in http request activity you have an option to give response attachment location and name where attachment is saved

cheers