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

Field Update help



I have strange question. hope some one  can guide. 


One can update the field value using validation field update or through apex trigger/class. If I have already implemented trigger on particular object and require to update any field value on the basis of some condition which one is the better way and why?


I would recommend using validation rules, workflow rules and field updates where possible instead of Apex code. Its easier to implement and maintain vs code. I am a huge fan of Apex - but in this scenario, I recommend using the builder features to point-n-click the solution.