Skip to main content

.getDepartments()

This API allows you to programmatically get a list of all departments that have been associated with the brand in which Mobilisten is configured.

Properties

PropertyData typeDescription
idStringThe ID of the department
nameStringName of the department
availableBoolCurrent availability of the department based on operator availability and business hours.

Error codes

CodeDescription
500Mobilisten not initialized
605Mobilisten disabled

Callbacks

NameDescription
error'Error' is returned if an error occurs while using the API. The list of possible error codes is mentioned in the table above.
departmentsList of all the departments that have been associated with the brand in which Mobilisten is configured.

 

Usage

Copied  ZohoSalesIQ.getDepartments(function(departments: any) {
    console.log(departments);
  }, function(error: any) {
    console.log(error);
  });