Script: Acknowledge User by e-mail when the request is updated (with changed value)

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?

                    • Related Articles

                    • How to update E-mail Id(s) To Notify using business rules

                      This is a sample python script to update the E-mail Id(s) To Notify during request create/update based on certain criteria using Business Rules Prerequisite: The SDP-MSP server should be configured to execute python script. Steps available here.  ...
                    • Deluge Script to show request attributes in Task Subject / Description from builds: 10600 and 14306

                      Requirement: To show the request field values such as Request Type, Status etc., or the additional field values in the Task subject/description. Use case: When a task is triggered from a request, it should contain the request details (configured) in ...
                    • Script to Auto share request

                      1. Download MSP_share_Request.zip from the attachment, extract it, and paste the same under ManageEngine\ServiceDesk Plus MSP\integrations\Custom_scripts.          # auto_share_MSP.py      # functions.py      # configuration.json 2. ...
                    • Update Requester from Request Description

                      Use case: When a request is submitted on behalf of a user via email, the request description contains the requester's full name. Script to update the ticket requester accordingly. Tested on builds: 14306,14500. Steps to follow: Go to Admin > Request ...
                    • Script to Populate User Additional Field under Incident Template using FAFR

                      The script load the Requester Name under Incident Additional field ( As a pick list), by choosing the requester name under additional field the script populates the user additional field value. * Kindly create two additional fields under Admin -> ...