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
vishwa attikerivishwa attikeri 

ho to compare new value and old value

Hi,

 

How to compare new value and old value in apex controller 

Devendra@SFDCDevendra@SFDC

Hi,

 

You will have to use Trigger.New and Trigger.Old here.

 

Also refer a blog from Andrew Boettcher http://techman97.wordpress.com/2011/10/22/comparing-new-values-vs-old-values-in-apex-trigger/

 

Thanks,

Devendra