Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
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?
1 answer
  1. Jan 28, 2016, 3:50 PM
    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)';

     
0/9000