Custom Triggers for Custom Module

Custom Triggers are used to configure automated actions for incoming records that fulfill certain preconfigured criteria.

You can automate several processes, such as sending customized email notifications, creating a new record based on resource field information, or setting up integration with third-party applications.

Role Required: SDAdmin

To configure custom triggers, go to Admin > Automation > Custom Triggers > Custom Module.

 

Trigger the Defined Workflow  

 

When an incoming record matches certain conditions, you can configure for specific actions to be performed automatically. The conditions refer to values that the record fields must contain when the record is created, edited, deleted permanently, or moved to trash.

Custom triggers are categorized into groups.

To create a New Trigger Group,

 

 

Configure Custom Triggers

 

If you choose Edited, you can specify whether the custom trigger action should execute every time the record is edited or only when a field specified in the condition is updated and the condition is fully met.

The Moved to Trash feature will be available only when the Trash option is enabled on the custom module details page within the Admin section.

 

 

Configuring Custom Actions  

  

Custom triggers are configured to execute various actions for records that fulfill specific incoming criteria.

 

In ServiceDesk Plus, you can choose from six custom actions for your custom triggers, as follows:

 

You cannot configure custom functions, scripts, and class within the same trigger.


Notification Action

 

You can use custom actions to send email and SMS notifications to users you want to notify by using placeholders, users, or organization roles. You can also create new templates for these notifications and save them.

 

 

Attachments are not allowed for the SMS mode. For emails, the attachment size is 10MB by default. This can be modified by your system admin. 

 

 User Defined Action

User Defined Actions are custom actions that automate the creation of requests, custom module records, and their subentities across instances. To learn more, click here.

 



 

Custom Functions  

 

Custom functions allow you to manipulate data in ServiceDesk Plus and other external applications. customModuleObj and context are the arguments supported in custom functions.

To configure custom functions as a custom action:


 

To learn how to write custom functions, visit this page.

 

Execute Script 

 

Execute script allows users to modify the application's behavior and UI. In a script file, you can program the actions to be performed.

Follow the steps described in the document given below to program the required actions effectively.

Writing Custom Script files (A sample Python file)

 

If-If Actions  

 

The If-If action allows you to bundle multiple custom actions and execute them when the specified criteria is met. Learn more.

You can configure only one If-If action for a custom trigger.

 Configure If-If Action   


 

 

 If -Else Actions  

You can use the If-Else action to configure actions when the criteria is met and when it is not met. Learn more.

You can configure only one If-Else action for a custom trigger.

 Configure If-Else Action