• tamizharasan pushparaj
  • NEWBIE
  • 5 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,

I wanted to retreive contact object that is mapped to a specific account. Is this possible with SOSL? I am getting null contacts for the given accountid. If this is not possible, kindly suggest me an alternate that could fetch all contacts mapped to a account,website id,etc.

This is my query:

            String soslQuery = "FIND {" + accountid + "} IN ALL FIELDS " +
                "RETURNING " +
                "Contact(Id, Phone, Email, FirstName, LastName, AccountId,CEB_Id__c LIMIT 1), " +
            "Account(Id, Phone, Name)";

Thanks
 Make sure that the process is correct and that it is activated.
Create a process to update child record when the parent is updated.
You've been given a requirement to keep Contact addresses in sync with the Account they belong to. Use Process Builder to create a new process that updates all child Contact addresses when the address of the Account record is updated. This process:
Can have any name.
Must be activated.
Must update Contact mailing address fields (Street, City, State, Post Code, Country) when the parent Account shipping address field values are updated.
NOTE: You may have to deactivate the validation rule for the Contacts object (created from a previous challenge) in order to complete this challenge.