Hi every one I have a two articles: Offer__kav and Offer_order__kav.

How to Query This Two Objects Related All Fields.

For Ex: I tried :

List<List<SObject>> search_results = [FIND 'SFDC' RETURNING Offer__kav(Title), Offer_order__kav(Title,)]; 
  • Hi Khushboo Dua, THank you, i need to add Multiple Articles dynamically How? – ali Aug 10 '18 at 13:17

You can use this below query, Its working fine.

List<List<Sobject>> search_results = [FIND 'How is BB' RETURNING Test1__kav (Id,Article1__c),Test2__kav(Id, KnowledgeArticleId)];
| improve this answer | |
  • Hi @magi 001, would you mind providing minimal explanation to your code so others may better understand your answer? (Its working fine doesnt really help others learnf from your post) please take a moment to review How to Answer, very much appreciated! – glls Aug 10 '18 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.