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
THUNDER CLOUDTHUNDER CLOUD 

How to check if the field is not updated using trigger ?

Abdul RazzaqAbdul Razzaq
Hi,

Try writing a test class on that trigger to check whether its updating your fields or not.
If not clear enough, please elaborate.

Regards,
Razzaq.
UC InnovationUC Innovation
In the trigger, you can compare if the field is updated or not by comparing Trigger.old against Trigger.new.  If they are the same, then the field is not updated.