The following describes how to pass variables in a script to write data into a text file when using a notification method
Service Desk Manager 14.1 and 17.x
All Supported Operating Systems
The below example shows how to write the data like ticket number, person name into a text file when a Service Desk Manager (SDM) ticket is opened.
Echo %1 %2 %3 %4 %5 >> %1.txt
Symbol : Launch BatchFile
Macro Type : Execute Remote Reference
Object Type : Request/Incident/Problem
Symbol : Launch BatchFile
Record Status : Active
Object Type : Request/Incident/Problem
Macro Type : Execute Remote Reference
Remote Reference : Launch BatchFile
Parameters to Command : @{ref_num} "@{description}" @{priority} "@{customer.combo_name}" @{customer.phone_number}
NT Server, Unix Command : ${NX_ROOT}/bin/launchit test.bat
Symbol : Launch BatchFile
Code : LBatchFile
Record Status : Active
Architecture Type : win
NT Server, Unix Command : ${NX_ROOT}/bin/launchit test.bat
Name : Launch BatchFile
Object Type : Request/Incident/Problem
Record Status : Active Configuration Information
Delay Time : 00:00:05
Repeat Delay Time : 00:00:00
Allow Time resetting Checkbox is checked
Save History is selected
Condition : Req. Status = Open
Event Action Information: We added the Execute remote reference macro test and Add an Activity Log" under Actions on True.
In Step #4 above, any field that could potentially have spaces in its content (i.e. Ticket Description) must have the variable enclosed in double-quotes (i.e. "@{description}")
Once the text file is written, you custom script can read this file and use the info to integrate with other external applications.