Script to Automatically add an Email in all responses

Script to Automatically add an Email in all responses

Using this script you can notify a user about all tickets created and their responses. The user will be automatically cc'ed in all tickets.

You Should install Python in the SDP MSP installation machine to run this script.


Post the Python installation, follow the steps below :

1. Download the attached file (update_email_ids_to_notify_BR.py)
2. Paste it under \ServiceDeskPlus-Msp\integration\custom_scripts
3. Goto Incident Templates and make sure E-mail Id(s) To Notify field is associated with the template.
4. Goto Admin -> Business rules -> Add New rule -> Provide name then do the following steps.

a. Select Execute during request - As create operation -> Any time.
b. Don't provide any criteria
c. Under -> Perform these actions -> Select - Execute Script -. Choose -> Type ->  py update_email_ids_to_notify_BR.py $COMPLETE_V3_JSON_FILE 
Save the pop-up and save the configuration.

5. Edit the update_email_ids_to_notify_BR.py file in a notepad and goto the below line and provide the needed email and save the file.

 "email_ids_to_notify": ["test@test.com"]
Make sure the above Email Id is associated with some requester.

Now once a request is created, E-mail Id(s) To Notify field will have the configured email and the user email will be auto-populated and the user will be notified.

PS : You need to create the business rules under needed Accounts / Sites. This will work only when the corresponding Account / Site requester raises the ticket

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to send notification to users on upcoming contracts

                      Please follow the below link to setup python on the server https://pitstop.manageengine.com/portal/en/kb/articles/how-to-setup-python-on-the-server-11-11-2019 Steps to configure 1.  Extract the attached zip file in <Home>/integration/custom_scripts ...
                    • Notification script using Custom function in custom trigger

                      This is applicable from 10600 builds. From 10600 , Business rules dont have Email notification feature. The same use case be achieved through Custom triggers feature as mentioned below. Script to enable notification of request creation using custom ...
                    • Script to Auto merge requests with exact same subject

                      Use case: Too many alerts for the same reason from a machine keeps generating multiple tickets in SDP MSP. You can use the below script to auto-merge the requests in the application. The Merged tickets description will be added as a note to the ...
                    • How to flag a request and receive email email notification on every updates of the request.

                      Requirement : To flag a request and receive email notification on every update of the request. Solution : Add an additional field as 'Flag' with options Yes and No  I have split the solution 2 ways  1. Receive notifications when there is an update in ...
                    • Technician notification based on the site

                      This KB will help you to get the notification about based on the site to a technician. Please follow the below instructions. Please navigate to Admin >> Request timer action >> Add new timer action. Please configure the below in the application. ...