categorize()
The ZohoSalesIQ.KnowledgeBase.categorize API allows managing category visibility while displaying the resources in the Mobilisten knowledge base section.
Parameter:
- resource* - (articles) The type of the resource
- enable* - (true/false)
- true will list the categories, and when a category is selected, only the resources associated with the selected category will be listed. The default value is true.
- false will hide the categories and list all the resources.
Note:
- The API will work when the "Categorize articles" is enabled under brand settings. To check, from your SalesIQ dashboard, navigate to Settings > Brands > Personalisation > Knowledge Base > Article/FAQ > Categorize articles.
Syntax
CopiedZohoSalesIQ.KnowledgeBase.categorize(resource: SIQResourceType, enable: Bool)
Example
CopiedZohoSalesIQ.KnowledgeBase.categorize(.articles, enable: true)