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