API Call | Success Response | Failure Response |
SDP.showWidget().then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { message: “The requested action performed successfully.” } | { message: “This requested action is not supported in this view” } |
API Call | Success Response | Failure Response |
SDP.hideWidget().then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { message: “The requested action performed successfully.” } | { message: “This requested action is not supported in this view” } |
Name | Type | Description |
count | Integer | The value to be displayed on the badge. If not passed, the badge will be hidden in the UI. |
API Call | Success Response | Failure Response |
SDP.setBadgeCount(10).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { message: “The requested action performed successfully.” } | { message: “This requested action is not supported in this view” } |
Name | Type | Description |
field* | String | The name of the field |
API Call | Success Response | Failure Response |
SDP.getValueFromForm(“subject”).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { value: “Error in connecting to certain websites/URLs” } | { message: “This requested action is not supported in this view” } |
Name | Type | Description |
field* | String | The name of the field. |
value | String | The new value to be set in the field. If not passed, existing value will be removed. |
API Call | Success Response | Failure Response |
SDP.setValueInForm(“subject”, “Error in connecting to certain websites/URLs”).then(function(response) { console.log(response); }).catch(function(response) { console.log(response); }); | { "message": "The requested action performed successfully" } | { message: “This requested action is not supported in this view” } |