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
gvgv 

Trigger -> How to find out if values have changed

I have the following scenario:

 

In a after update trigger, I need to find out if 2/3 fields are getting updated(basically getting new values)

only then proceed with trigger. It seems really simple, but I am not very sure how to go about it

 

Thanks 

Best Answer chosen by Admin (Salesforce Developers) 
Cool_DevloperCool_Devloper

you can use the "Trigger.OldMap" to get the old values and check with the "Trigger.New" values to see if they have changed or not!

 

Cool_D

All Answers

Cool_DevloperCool_Devloper

you can use the "Trigger.OldMap" to get the old values and check with the "Trigger.New" values to see if they have changed or not!

 

Cool_D

This was selected as the best answer
gvgv
thanks. Cool_d