Event Listeners

Event Listeners

Event Listeners are functions that are called when a specific event occurs. They are initialized when the widget is loaded. The following event listeners are invoked to all widget in ServiceDesk Plus MSP Cloud when the DRE connection is authorized or revoked:

Listener Syntax
Description
Sample Response
SDP.on("AuthorizeConnection", function(response){
  console.log(response);
});
Invoked when the connection is authorized successfully.
{
"appId": "deeed61e-c6e6-4d8f-b50b-e45056e77f5b-709641411",
"connectionId": 5000000027171221,
"statusMessage": "Connection Authenticated Successfully",
"status": true
}
SDP.on("RevokeConnection", function(response){
  console.log(response);
});
Invoked when the connection is revoked successfully.
{
    "response": "Connection revoked successfully"
}
SDP.on("SubjectChange", function(response){
  console.log(response);
});
Invoked when the subject is changed in the request form.
Error in connecting to certain websites/URLs
 
    • Related Articles

    • Configure Custom Scripts for Form Rules

      Tabulated below are some of the sample scripts that can be performed as actions in request/change Form Rules. Requirement Script Examples Remarks Alert (Requests & Changes) await CS.alert(“message”); await CS.alert("Alert message"); Confirm (Requests ...
    • Notification Rules Use Cases

      Notification Rules Pointers Supported Modules: Requests, Problems, Changes, Projects, Release, Solutions, Assets, Purchase, Contracts, Tasks, and other general events. Supported Notifications: Email, SMS, and Push. Actionable Messages can be enabled ...
    • Workflows Use Cases

      Workflows Pointers Workflows can be configured for All Customers as well as for a specific customer, but not site-specific. This setting is module-specific. Separate workflows for incident requests and service requests can be configured. If an asset ...
    • Triggers Use Cases

      Triggers Pointers Triggers can be configured for All Customers or a specific customer. Once configured, the Customer cannot be changed. Triggers are module-specific and not site-specific. However, you can configure for specific sites of customers ...
    • Zapier Integration

      Zapier is a no-code automation platform that connects different apps and services, allowing you to automate repetitive tasks. You can connect ServiceDesk Plus MSP Cloud with various external web applications via Zaps. A Zap is an automated workflow ...