Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

Is it possible to know what change triggered an automation in a script?

Topic Labels: Automations
297 2
cancel
Showing results for 
Search instead for 
Did you mean: 

I’d like to optimize my automation by running the same automation whether any field is updated, but perform a change related to the updated field only.

How can I know what field was updated from a script?

2 Replies 2

The script cannot identify the updated field on its own. However, you could have formula fields do this. You could have last modified time fields for each of the inputs, and have the script compare the last modified times with the current time. Or you could have a formula field that uses last modified times to identify the field that was modified last.

Thanks but that won’t be reliable, but the time the automation runs, other fields may have been changed and it might not use the field that actually triggered the automation.