Activity Forums Salesforce® Discussions What is the difference between Trigger.new and Trigger.newMap in Salesforce?

  • krati

    Member
    January 28, 2020 at 1:56 pm

    Hi Manish,

    Trigger.New returns a list of sObject Records and is ordered.
    Trigger.New is only available in 'insert', 'update', and 'undelete' triggers

    Trigger.NewMap returns a list a map and is unordered, it is only available in 'before update', 'after insert', 'after update', and 'after undelete' triggers.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos