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

  • Anuj

    Member
    July 8, 2020 at 12:49 pm

    trigger. 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