getSingleResource()

The ZohoSalesIQ.KnowledgeBase.getSingleResource API allows getting details of a resource. 

Parameters:

  • type * - Type of the resource
  • id * - ID of the resource

Returns:

  • A Future that completes with a List<Resource> representing the retrieved resource categories.
     

Error Codes:

CodeMessage
500Mobilisten SDK not initialized
600No network connection
605Mobilisten SDK is disabled

Example

CopiedZohoSalesIQ.knowledgeBase.getSingleResource(ResourceType.articles, 'id').then((resource) {
                
}).catchError((error) {
              
});