You need to sign in to do that
Don't have an account?
John Smith
Help Regarding SOSL
Can we search on Multiple fields in SOSL, for example:
FIND {MyProspect} IN NAME OR PHONE |
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Can we search on Multiple fields in SOSL, for example:
FIND {MyProspect} IN NAME OR PHONE |
Hi,
Yes you can do search on multiple fields, for example, you can return a list of accounts, contacts, opportunities, and leads that begin with the phrase map:
List<List<SObject>> searchList = [FIND 'map*' IN ALL FIELDS RETURNING Account (id, name), Contact, Opportunity, Lead];
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
I dont want to search all fields, want to search just: name and Phone fields. Can we accomplish that?