function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
for(account a: trigger.new){ system.debug('Trigger.old : Account Name '+ trigger.oldMap.get(a.Id).Name); system.debug('Trigger.old : Account Industry '+ trigger.oldMap.get(a.Id).Industry); }
All Answers
It seems like that error is from different file.
Because you have given trigger name as updateexample. And in Problems section it is showing error for 'beforeupdateex'. Check once if that trigger or controller exists.
Thanks,
Dhanya
You need to use the trigger.oldMap to get the old values of the record. copy the first for loop with the below code.
Let me know if you face any isssues. Also mark this answer as best answer if this answers to your question.
Thanks and Regards,
Sai Krishna Tavva.