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 ...
    • 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 ...
    • Add Reminders in Requests

      Technicians can add reminders in requests to keep track of important information and to ensure that all activities related to the request are completed on time. Role Required: Technicians with Add Request permission. Create a New Reminder To add ...
    • Form Rules

      Form Rules allow you to define rules to automate certain actions on form fields based on custom conditions. Supported Form Types: Incident request forms, service request forms, change forms, problem forms, and release forms. Form Rules are executed ...
    • Purchase Order Notifications

      Notification rules are helpful when an event has to be notified to the technicians. Say, when a purchase order is overdue, technicians can be notified with an email automatically from the application. Enable Notification Rules Role Required: SDAdmin, ...