getCallCenterSettings() for Lightning Experience
Returns the call center settings associated with the current user. This method is available in API version 38.0 or later.
| Name | Type | Description |
|---|---|---|
callback | function | JavaScript method executed when the API method call is completed. |
This method is asynchronous. The response is returned in an object passed to a callback method. The response object contains the following fields.
| Name | Type | Description |
|---|---|---|
success | boolean | Returns true if the API method call was invoked successfully, false otherwise. |
returnValue | object | If the API call is successful, the call center settings are returned. If the API call fails, null is returned. |
error | array | If the API call was successful, this variable is null. If the API call failed, this variable returns an array of error messages. |
Example returnValue: