function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mridu86mridu86 

Not able to query article types if Channel 'Public Knowledge base channel' is checked

Hi,

My scenario is given below:

 

Iam trying to query from Article types(Knowledge)through Apex controller   when I choose the channel display as either Public Knowledge base,Customer,Partner.But Iam not able to query the article types which have only channel display as 'Public Knowledge Base'

 

SELECT Id,KnowledgeArticleId,PublishStatus,Close_Case_Approver__c,CreatedById FROM Admin_FAQ__kav where ValidationStatus='Contribute' AND  IsVisibleInPkb= true 

 

But if I select the check box under  Channel Display as 'Internal App' and then select the option Public Knowledge Base,im able to fetch that record through SOQL query.Below wriiten the code

 


My question is :Is there any way to query the articles whose channel display is selected only as'Public Knowledge Base'