Activity Forums Salesforce® Discussions What is the difference between trigger.new and trigger.old in Salesforce Apex?

  • shariq

    Member
    September 22, 2018 at 10:45 pm

    Trigger.new:

    Returns a list of the new versions of the sObject records.

    Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.

    Trigger.old:

    Returns a list of the old versions of the sObject records.

    Note that this sObject list is only available in update and delete triggers

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos