Notification script using Custom function in custom trigger

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 function in custom trigger:

please follow the below given steps:

1.Goto Admin > Request Custom Functions > Global function > New > Paste the content from the attachment   (1.global_function_11_findAllDynamicKeysMultiLevel.txt) and save it with a name.

2. Modify the return type, and parameters. Note the global function count. Refer to the attached screenshot.

3.  Goto Admin > Request Custom Functions > Global function > New > Paste the content from the attachment   (3. global_function_12_getDynamicFieldValue) and save it with a name.

4. Modify the global function name,return type, and parameters.  Note the global function count. Refer to the attached screenshot.

5.Go to Admin --> Request Custom Functions --> Custom Actions --> Paste the content from the attachment (5.custom_function_sendmail) and save it with a name.

4. Modify the global function name, URL and the FROM TO name in the script. Refer to the attached screenshot. 

5. Configure custom trigger.

          • Related Articles

          • Script to add worklog using custom schedule

            What is a Custom Schedule? Custom Schedules are actions scheduled on a specific date and time with or without repeat frequency. The actions are specified in a customized script file. Any data from ServiceDesk Plus can be sent to the script through ...
          • 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 ...
          • Reject emails sent from unknown requester and send notification using scripts for 10.6 and above.

            This script is specifically for 10.6 and above Usecase : Organizations don't want to handle/fetch unapproved contacts mails into the application. They also want to notify the end user when they send email stating-> "The Request raised by you is ...
          • 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 ...
          • How to add Resolution and Close Requests using Custom Trigger

            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, the script will add the resolution and set the status to 'Closed' You can modify the condition for the ...