Does anyone know how (if) this can be done? Ultimately, we want to send the attachment out of SM via email to a vendor for processing after the change ticket has been approved.
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
That's my code to save attachments from table to disk
Thank you for the script ALARMus . I was able to modify script and copy attachments from a specific ticket table; for example, imTask. Instead of the files stored in the directory I stated, I noticed the files were copied into the RUN directory of SM. the line "var ParentFolder = "c:\\temp\\imTask\\";" was appended in front of the file name. For example, a file named "test.png" was saved into the RUN directory as c:\temp\imTask\IM12008-001\test.png.
From the RUN directory, I was able to move the files to /tmp directory.
Within the /tmp directory, I changed file permission to all moved files.
Using Filezilla, I was able to copy files to a shared drive.
Joe