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
cloud lendingcloud lending 

if i search any name of account then i want to display related contact, lead and opportunity.can any one give solution.?

Amit Chaudhary 8Amit Chaudhary 8
sampath kumar 3sampath kumar 3
As per my knowledge by using sosl query you can achieve this as follows : list<list<Sobject>>  result = [FIND  keyword  IN FIELDGROUP Returning  Contact(fristname,lastname),Opportunity(name,stageName)].

Please let me know if it  meets your requirement


 
sampath kumar 3sampath kumar 3
In the above FIELDGROUP means speicify like name,email or all Ex:  list<list<Sobject>>  result = [FIND  keyword  IN ALLFIELDS Returning  Contact(fristname,lastname),Opportunity(name,stageName)]