Activity Forums Salesforce® Discussions How to find all the master records when a related object is updated in salesforce?

  • How to find all the master records when a related object is updated in salesforce?

    Posted by Prachi on November 19, 2019 at 1:21 pm

    A custom object is associated with account and contact via a lookup field.  Is it possible to find all accounts and contacts of all the custom object records which are updated using a SOQL query?

    Deepak replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Deepak

    Member
    November 19, 2019 at 1:53 pm

    Create a trigger on that custom object on update. then query the master record using id that is common in both

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos