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

Julian Hoch
ServiceNow Employee
ServiceNow Employee

It will download to the MID Server, so you have to specify the MID-Server folder (e.g. C:\My_Excel_Files). That folder should exist on the MID server, so you might have to create one. I recommend not using spaces, since that might lead to some problems with your PowerShell scripts.


How and where to specify the folder structure in MID Server or i need to send a parameter value to powershell script


Julian Hoch
ServiceNow Employee
ServiceNow Employee

Of course you have to add appropriate inputs to the activity:



2016-08-11_14-06-53.png



Than you can just enter the correct values in the activity that you use in the workflow:



2016-08-11_14-07-12.png



If you're unclear about that, I'd recommend the wiki: Activity Designer - JavaScript Probe - ServiceNow Wiki


Hi Julian,



I have tried to create custom activity to run the above mentioned scripts.


find_real_file.png


find_real_file.png


When i run this activity, with the below inputs.


find_real_file.png


its giving the below error.


find_real_file.png


What is the issue here. Could to pls help me to resolve this.


I think you didn't map the variable correctly:



find_real_file.png



Also, please check the ecc queue to see what is sent in there and paste that.