I have a request id/number (i.e. REQ0010152), and I need to be able to download an attachment

taruch
Tera Contributor

I have a service catelog item and an assocatiated flow that is using the Ansible spoke to call an Ansible workflow template that updates a web firewall with a certificate.  As part of the service ordering process, I attach a certificate that I need to be able to get to complete the Ansible workflow.  I'm passing the request ticket number to my Ansible workflow.  How can I, starting with the req number, download the attachment via the API?

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @taruch 

 

https://www.servicenow.com/community/developer-forum/rest-api-from-third-party-and-get-attachment/m-...

 

https://www.servicenow.com/community/developer-forum/how-to-create-a-rest-api-to-download-attachment...

 

*************************************************************************************************************
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]

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