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

Is field tracking respected for fields updated in Apex Code?

We have a few fields on a custom object where field history is tracked.  However, those fields are updated with an Apex trigger.  It does not appear that the fields are tracked when the field is updated with the Apex Trigger.  Is this accurate?  The records could have been created before the fields were tracked, so I can't confirm based on the data alone if the field tracking is respected or not.  Thank you!  

David SupuranDavid Supuran

As a short answer, yes, apex code changing a field will show up in field history tracking and it is respected.


Can someone else be modifying the same field besides apex? certainly.  Please look at an order of execution list for

Thank you! I truly appreciate the clarification. Have a great evening!