I'm struggle to find documentation on how the history tracking is handled respect the order of execution...
due to this I'm not understanding what happen to the system. I'm monitoring a simple action
I have this order execution
custom code execute and instantiate an SObject, in the execution is set the field myField__c (the field is in the history tracking, is a datetime ). At the end of the execution the code perform a DML (update)
On the dML executes a trigger, that trigger may re-assign e new value to the field myField__c on before update
in some cases i see that history tracking register two events on myField__c, which saying that the field has changed 2 times, is this what expected?
Where i can find when the field history tracking is executed in the order of execution?