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

apex:enhancedList and Articles

I am trying to use the apex:enhancedlist component to display knowledgebase articles in a grid but it seems to not be supported as everytime I try it with the type of knowledgearticleversion or knowledgearticle it fails


<apex:enhancedList height="300" rowsPerPage="10"></apex:enhancedList>


My aim is to display articles in a similar way in visualforce to what the main salesforce page looks like.  Any help would be much appreciated.



    <apex:enhancedList  type="ObjectName"  height="300"  rowsPerPage="10" />



When ObjectTypeName equals to KnowledgeArticleVersion or any article type API Name in the FROM clause, a WHERE clause must be specified with one of the following parameters:

  • PublishStatus to query articles depending on their status in the publishing cycle:

o   WHERE PublishStatus='online' for published articles

o   WHERE PublishStatus='archived' for archived articles

o   WHERE PublishStatus='draft' for draft articles


Otherwise it will show 'bad filter id' error message.


Hope this helps.