.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:

PropertyDatatypeDescription
idStringID of the department
nameStringName of the department
availableboolAvailability of the department based on operator availability and business hours.

Error handling:

CodeDescription
605Mobilisten disabled

‚Äč

 

Example

CopiedZohoSalesIQ.getDepartments().then((departmentList){
  // your code goes here
}).catchError((error){
  // your code to handle errors
});