Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to download Attachment from the incident ticket using Servicenow Orchestration

satiz
Giga Contributor

I need to download the Attachment from Incident Ticket when the Ticket is create and do some excel manipulation in that file

26 REPLIES 26

Hi Julian,



I have mapped inputs as mentioned above.


find_real_file.png


But I am getting the same error.


find_real_file.png


Make sure the Script Include has the same name as the class defined inside it. So it should be DownloadFile, unless you renamed the class as well.


Hi Julian,



I have changed the script file name and class name to same. This time i am getting some other error.



find_real_file.png


I'm not sure - might be a syntax error in the script, or a problem in the parameters of the probe. I'd examine the Output Probe in the ecc_queue to check if the parameters are set correctly.


Hi Julian,



i have given the below inputs in Test inputs of a custom activity.


find_real_file.png


And the response for the above inputs are as below



find_real_file.png


But the downloaded file is corrupted. Could you help me to fix this.


find_real_file.png