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
mahimahi 

before update trigger

hi all,
 
suppose i insert value 'mahi' in 'nickname' field in account object (custom field).
 
then upon changing name from 'mahi' to 'mahesh', 'before update' trigger fire. i used adderror statement to reflect nickname value.
 
there i got mahi, old value.
 
Could anyone help me?
TehNrdTehNrd
Go ahead and post some code. My guess is that you are not refering to the Trigger.new value.
mahimahi

you are right buddy, i was not capturing trigger.new value.

thanks :)

mahi

TehNrdTehNrd
No problem, glad I could help.