function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Reddy@igReddy@ig 

Trigger events for trigger.new and trigger.old?

Hi folks,

 

I need  a tabular column which explains about the trigger events on trigger.new and trigger,old.Please dn't send  any  links which will link to the google already referd google but still confusion?Can anybody help me?

 

 

 

 

Tnanks&Regards,

Mr.Reddy

 

ibtesamibtesam

The Basic explanation to it will be this.

 

When you go to a record, click on edit and change some field A value from 'y' to 'z' and click on save.

If that operation fires a trigger. then,

 

Trigger.old will have field value as y and

Trigger.new will have field value as z

 

So in short if a record DML operation fires a trigger, the field values of that record before modifications will be in trigger.old

and after modifications will be in trigger.new