Deluge script to send Approvals based on the department of the requester raising the ticket.

Deluge script to send Approvals based on the department of the requester raising the ticket.

The following script can be used to send approvals based on the department of the requester raising the ticket.
The following script will work from builds 10605 in Service requests, due to a known issue which was fixed in 10605 SDPMSP-18560

1: Download the attachment.

2:  Go to Admin --> Request Custom Functions --> Custom Actions --> Paste the content from the attachment (1. add_approvals.txt ).

3:  Modify the Department names and  approver email in the script.

Screenshot for your reference:



Once the values are configured in the script please save it and when a requester from the following requester raises a ticket the approval will be triggered to the email configured under it.

4: We need to configure the following custom trigger from Admin>>Custom trigger>>New

Screenshot for your reference:


You can add the templates for which you need this script to be working and send approval should be entered here.

      • Related Articles

      • Script to send notifications when a unknown request is raised

        Use case The script will send email notifications to the address configured inside the script whenever a request is created under unknown requests.  This notification will be sent to Admin Email Pre-requisite - Python should be installed in the ...
      • How to implement dynamic request approval using FAFR and custom triggers.

        This is a sample script written in Python to handle Conditional Approvals for Incident \ Service Requests, through Custom Triggers using Field and Form Rules.  One of the advantages of using this script is that there is no modification of the script ...
      • How to send custom email notifications for a request.

        This sample python script is used for sending custom notifications from ServiceDesk Plus MSP when a criteria is met.  You all know that ServiceDesk Plus MSP has notification rules and customisable templates to notify requesters, technicians, and ...
      • 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 ...
      • Query to list the pending approvals of a Service Approver

        PGSQL & MSSQL: SELECT wo.WORKORDERID "Request ID",aau.FIRST_NAME "Requester",wo.TITLE "Subject",ti.FIRST_NAME "Technician", longtodate(wo.CREATEDTIME) "Created Time",appsau.first_name "Approver", asd.statusname "Approval Status" FROM ...