Friday 22 March 2013

Trigger Info

Hi ,

Trigger in salesforce.

before insert --> trigger.new --- we got the values
before insert --> trigger.old --- null
---------------------------------------------------------
after insert --> trigger.new --- we got the values we can't change the value
after insert --> trigger.old --- null
---------------------------------------------------------
----------------------------------------------------------


before update ---> trigger.new -------we got the value and we can change the value by this
before update ----> trigger.old ------we got the value but we can not change the value as record is only read only

after update------>trigger.new----------->we got the value but we can not change the value
after update-------trigger.old------------> we got the value but we can not change the value
-------------------------------------------------------------------

after delete ----trigger.old ----- we got the value
after delete ----trigger.new ------ we can get the value

before delete ----trigger.old ----- we got the value
before delete ----trigger.new ------ we can get the value

--------------------------------------------------------------------

after undelete ---trigger.old ---------------null
after undelete ---trigger.new----------------we got the value

Thanks
Ashlekh

No comments:

Post a Comment