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
trigger YourTriggerName on ObjectName (before update) { // Some code here String oldPhone; for (ObjectName var : Trigger.new) { // Access the "old" record by its ID oldPhone = Trigger.oldMap.get(opp.Id); // More code logic here } }
Eg code: Does this help? Do you need more information.
--
Abhi
OldPhoneValue = trigger.olMap.get(contact.id).Phone.
NOTE : trigger.oldMap is only available in update and delete triggers.
Thanks,
Abhishek