..." /> ...">

Hi,
I am displaying results from SOSL query in a page block table.
For salesforce knowledge articles, "where" condition for "publish status" is mandatory to be mentioned.
Public List<Testing__kav> kbList{get;set;}
List<List<sObject>> search_results = [FIND :searchStr1 IN ALL FIELDS RETURNING Knowledgekav (Id,Title,Summary WHERE PublishStatus = 'Online'smile ];
kbList = search_results_dr[0];
But This only retrieves articles with online status.
I also need articles with Draft Status, for which i have written another sosl query:
List<List<sObject>> search_results_draft = [FIND :searchStr1 IN ALL FIELDS RETURNING Knowledge
kav
(Id,Title,Summary WHERE PublishStatus = 'Draft'smile ];
How to combine these two sosl queries and add the result to my object kbList so that i can display in VF page in one single table?

I didn't find the right solution from the internet.

References:
https://developer.salesforce.com/forums?dc=Apex_Code_Development#!/feedtype=SINGLE_QUESpment&criteria=ALLQUESTIONS&id=9060G000000MU8iQAG

advertisement examples

Hi, I am displaying results from SOSL query in a page block table. For salesforce knowledge articles, "where" condition for "publish status" is mandatory to be mentioned. Public List<Testing__kav> kbList{get;set;} List<List<sObject>> search_results = [FIND :searchStr1 IN ALL FIELDS RETURNING Knowledge__kav (Id,Title,Summary WHERE PublishStatus = 'Online') ]; kbList = search_results_dr[0]; But This only retrieves articles with online status. I also need articles with Draft Status, for which i have written another sosl query: List<List<sObject>> search_results_draft = [FIND :searchStr1 IN ALL FIELDS RETURNING Knowledge__kav (Id,Title,Summary WHERE PublishStatus = 'Draft') ]; How to combine these two sosl queries and add the result to my object kbList so that i can display in VF page in one single table? I didn't find the right solution from the internet. References: https://developer.salesforce.com/forums?dc=Apex_Code_Development#!/feedtype=SINGLE_QUESpment&criteria=ALLQUESTIONS&id=9060G000000MU8iQAG [advertisement examples](https://blog.advids.co/20-best-examples-of-creative-animated-advertisements/ "advertisement examples")
6
views
0
replies
1
followers
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft