Activity Forums Salesforce® Discussions How is Trigger.New Different from Trigger.newMap in salesforce?

  • kishan

    Member
    May 12, 2021 at 1:31 pm

    new is simply a list of the records being processed by the trigger, so if all you need to do is loop through them then you can use that. trigger. newMap just allows you to target specific records by Id should you not need to process everything, or if you need to map other records back to these.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos