Help understanding the sequence of data operations when a workflow function needs the modified value of the field that triggered the workflow.

Help understanding the sequence of data operations when a workflow function needs the modified value of the field that triggered the workflow.

Workflow triggers on user modify Shipped which is a date field.


That  same workflow runs function which needs to use the value of the field just modified.

 

// Get value from the record and field which triggered the workflow

shipped_date = zoho.crm.getRecordById("Size_Run_Reservations",size_run_reservation_id).get("Shipped");

 

It seems that the Shipped field is not yet COMMITTED when the function runs because this fails:

expected_return = shipped_date.addDay(10);


Help understanding the sequence of data operations when a workflow function needs the modified value of the field that triggered the workflow.