Script: Acknowledge User by e-mail when the request is updated (with changed value)
We can achieve it by using the Custom Trigger feature along with a python script. We can set a trigger based on which the script will execute. As the notification needs to be sent when there is an update in the Request fields. It's better to save the Custom Triggers without any criteria.
Pre-requisites:
1. Python should be configured in the server. If it's not already installed, click here for instructions.
2. Also We need a dependency called requests. To install dependency run the file 'easy_install.exe' which is under <Drive>:\Python34\Scripts
Example :
C:\Python34\Scripts>easy_install.exe requests
Instructions:
1. Download
the script "sendmail_withdiffcontent_v1.py" and place it under ManageEngine\ServiceDeskPlus-MSP\integration\custom_scripts.
2. Also, place functions.py and configuration.json (edit this file set values as per yours) under ManageEngine\ServiceDeskPlus-MSP\integration\custom_scripts.
3. Edit the file "sendmail_withdiffcontent_v1.py" and configure the Subject & Email Address that you would like to notify:
4. Set the Custom Trigger Action as per your requirement.
5. Under "Perform Action". Set the Action as "Execute Script" with "py sendmail_withdiffcontent_v1.py $COMPLETE_JSON_FILE" as show
New to ADSelfService Plus?