with the help of run process command you can save attachment:
PERFORM-ACTION-SAVE-ATTACHMENT attachment_fieldid "ABC"
you can save this file at common location and use the same path and stored it in summary field.
Hi You can acieve this through the process command called PERFORM-ACTION-SAVE-ATTACHMENT fieldID [ "fileName" ]
where Remedy folder should be a shared folder also make a note that while you are saving this filter you should use `! to override the filter phase because run process runs on the thrid filter phase. Also if you are planning to use this command in the filter under set action then you need to add "$PROCESS$" command in front.
I have created an AL for this with RUN PROCESS command as PERFORM-ACTION-SAVE-ATTACHMENT 301361600 "C:\Remedy\"
and its saving the attachment ,now I want to send the link at the time of saving the ticket...how I can done this
thanks for your reply
You need to write one SQL code to retrieve this information.
Select C536870916 from <attachment table name> where $request id$='request id'
attachment table name = B308, this is the attachment table name
C536870916, this is the column name where all the server address stored.
put the this sql in field for temporarily and add the notify action in that mentiond this temp field.
Okey..now am using the following query to save the attachment while saving the ticket PERFORM-ACTION-SAVE-ATTACHMENT 301361600 "C:\Remedy"
here is it possible to create a folder with name as Incident number,so that the person can easily find out the attachment usimg the tix no.
for eg if the tix no is INC000000000011 and the folder name should be INC000000000011 and all attachment related to that ticket should be in this folder
is it possible
yes ! we can do this by using another run process command.
use mkdir command in run process and give Incident number field in syntax.(if Incident number is not null)It will create new folder.
Here you have to take care of sequence and execution of these two run process.(first folder should be created and then all attachments should go into respected folder.)
thats cool .........but can u giv me the syntax for that...
I have created a run process command with mkdir"C:\Remedy\"$Incident Number$ but it throwing error...
can u pls help
any answers plssssssss
cmd /c mkdir gg
Yes, am able to create a folder with Incident no using cmd /c mkdir $Incident Number$ command.Now I want to save the attachment in to this folder.What command I have to give?
2 of 2 people found this helpful
I have already told it in my previous post: Run Process cmd is:
PERFORM-ACTION-SAVE-ATTACHMENT Attachment field id "full path of folder" (e.g C:\INCxxxxxxx1)
Take care of execution order of both run processes! Now just manage these commands and get a result..
We have a different issue.
Saving the attachment is not an issues EXCEPT for where *what server) it lands on.
We have found that the file lands on the midtier server (we have 4 different ones)
Then an AI job launches on a different server and cant get to the file on the midtier
Can we pass the server name in addition to the location?
I suspect that we can identify which server the AI job will run on and place the file on the same server.
Note Examples below:
Filter saved file:
Wed Oct 09 2019 20:38:10.8710 */ PERFORM-ACTION-SAVE-ATTACHMENT 536870914 "\\Remedy_Midtier01\D$\APPS\Interfaces\BRGAA5V0GYG80APZEVDMPYHHTJN8LK.xlsx"
AI Job was launched
2019/10/09 19:38:10 - General - Connected to PDIREPO_Remedy_AIServer02
1 of 1 people found this helpful
When using the save attachment command, it gets saved on your Remedy server, not your Mid-Tier server....now, the two may be the same in your case, granted, but it's an important distinction
When specifying the location to save the file, the path can be a network path....I would recommend not actually storing it on any of the actual remedy servers, but instead, store it on a file share that's accessible to all of the Remedy servers, and then point the AI job to the same place.