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

AI in Salesforce

Transform businesses with the power of Artificial Intelligence leveraged through Salesforce Einstein

Blog in

Artificial Intelligence is powering next-generation customer experiences with smart predictions, intelligent recommendations, timely automation and much more. Gartner predicts that by 2020, a staggering 85% of…

Popular Salesforce Videos