Hi Carlos,
This is not an issue with the script itself, but with the way Python is installed and configured on the ServiceDesk Plus server.
The following are steps that should be followed to troubleshoot this issue.
1. Check if the script is set up properly under the Custom Trigger.
Eg: python ConditionalApproval.py Approval_Code $COMPLETE_JSON_FILE
(or) py ConditionalApproval.py Approval_Code $COMPLETE_JSON_FILE
2. Make sure that Python is installed on the ServiceDesk Plus server.
3. Let us say , Python is installed in C:\Python34 on the server.Then make sure the following two locations are added under the 'Environmental Variable' called 'Path' on the Server.
C:\Python34 and C:\Python34\Scripts
Once this is done , you should be able to access the Python Interpreter by typing 'Python' or 'Py' from Run or from a Command prompt.
4. If this is setup properly and if the application is still showing a error when the script is triggered, then get into the following folder from the command prompt,
ServiceDesk-HOME\integration\custom_scripts
and check if you are able to use Python or Py to open the Python Interpreter.If this does not work, then we can try changing the Custom Trigger configuration using the Actual Path of the Python.exe file.
Eg: C:\Python34\python.exe ConditionalApproval.py Approval_Code $COMPLETE_JSON_FILE
5. If the issue persists, please try clearing the cache , cookies and temporary internet files on the browser from where the application is being accessed and then check if the script is running.A restart of the browser would be good.
1. Check if the script is set up properly under the Custom Trigger.
Eg: python ConditionalApproval.py Approval_Code $COMPLETE_JSON_FILE
(or) py ConditionalApproval.py Approval_Code $COMPLETE_JSON_FILE
2. Make sure that Python is installed on the ServiceDesk Plus server.
3. Let us say , Python is installed in C:\Python34 on the server.Then make sure the following two locations are added under the 'Environmental Variable' called 'Path' on the Server.
C:\Python34 and C:\Python34\Scripts
Once this is done , you should be able to access the Python Interpreter by typing 'Python' or 'Py' from Run or from a Command prompt.
4. If this is setup properly and if the application is still showing a error when the script is triggered, then get into the following folder from the command prompt,
ServiceDesk-HOME\integration\custom_scripts
and check if you are able to use Python or Py to open the Python Interpreter.If this does not work, then we can try changing the Custom Trigger configuration using the Actual Path of the Python.exe file.
Eg: C:\Python34\python.exe ConditionalApproval.py Approval_Code $COMPLETE_JSON_FILE
5. If the issue persists, please try clearing the cache , cookies and temporary internet files on the browser from where the application is being accessed and then check if the script is running.A restart of the browser would be good.
6. As a last resort , you can also try Restarting the Application server.
If you are still facing issues, please create a support request with us by sending a mail to support@servicedeskplus.com .