Skip to product menu
Skip to main content

getResourceDepartments()

The ZohoSalesIQ.KnowledgeBase.getResourceDepartments API allows fetching the list of resource departments associated with the brand. Upon execution, the array of `ResourceDepartment` objects will include the resource departments under the brand settings (Settings > Brand > Select your brand > Flow Controls > Department responsible for chats/Use the resource of associated department). 

Returns:

  • A Future that completes with a List<ResourceDepartment> representing the retrieved resource departments.

Example

CopiedZohoSalesIQ.knowledgeBase.getResourceDepartments().then((departments) {
             
 }).catchError((error) {

});