I have a calculation field that updates when a Multi-Select field is changed/updated. Then I have a “When a record is updated” automation that runs a custom script that relies on the new values of the updated calculation field. However, I’m not sure what the most efficient way is to run this because the calculation sometimes does not update in time, and the custom script sends the old data.
Here is my current automation:
- Then, in the custom script, I use the following before making an
http.postcall:
// Reload the current record and reassign all variables after delay
await reloadCurrentRecordReassignVariables();
This seems to be working correctly. It appears that reloadCurrentRecordReassignVariables() reloads the record and provides the new values. However, I wonder if it is really waiting for the calculation-updated values before triggering my http.post call script?
Other Option
The calculation field has a “Trigger automations” option:

If I activate that trigger from the calculation field and then change the automation to:
It works perfectly, and without the await reloadCurrentRecordReassignVariables();
Which one of the two approaches is the correct/fullproof way to do this?

