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).
Parameters
- callback (Optional): A closure that receives an array of `ResourceDepartment` as its parameter, when the operation is completed.
Syntax
CopiedZohoSalesIQ.KnowledgeBase.getResourceDepartments(
callback: (error: CallbackError, departments: Department[]) => void
)
Example
CopiedZohoSalesIQ.KnowledgeBase.getResourceDepartments((error, departments) => {
});