.getDepartments()
This API allows you to programmatically get a list of all the departments that have been associated with the brand in which Mobilisten is configured. The API provides an array of instances of the SIQDepartment class to represent the list of departments.
SIQDepartment class contains the following properties:
Property | Datatype | Description |
id | String | ID of the department |
name | String | Name of the department |
available | bool | Availability of the department based on operator availability and business hours. |
Error handling:
Code | Description |
605 | Mobilisten disabled |
Example
CopiedZohoSalesIQ.getDepartments().then((departmentList){
// your code goes here
}).catchError((error){
// your code to handle errors
});