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
Paula Jarvis 4Paula Jarvis 4 

SOSL Query Assistance

I need to write a SOSL query to look at the Contact Phone and then look up to a custom Account field called Market (Report_card_segment_c). Would someone please assist?
Paula Jarvis 4Paula Jarvis 4
This is what I have so far:

// use SOSL instead lf SOQL for fuzzier matching
// we are searching for the phone number of the owner of the account
// that has the clid number associated with it.
   $search = 'FIND {' . $clid . '} IN PHONE FIELDS '.
  'RETURNING ACCOUNT(OWNER.PHONE)';