isEnabled()

The ZohoSalesIQ.KnowledgeBase.isEnabled API allows to get the status (enabled/disabled) of the specified resource type in the portal. 

Parameters

  • resource*: (articles)The type of the resource.

This API returns a boolean value: true signifies that the specified resource type is enabled, while false indicates it is disabled. 

Syntax

CopiedZohoSalesIQ.KnowledgeBase.isEnabled(resource: SIQResourceType)

Example

Copiedlet isKnowledgeBaseEnabled = ZohoSalesIQ.KnowledgeBase.isEnabled(.articles)
if isKnowledgeBaseEnabled {
     // Your code, when the knowledge base is enabled
} else {
     // Your code, when the knowledge base is not enabled
}