Help

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

Topic Labels: Automations
1560 2
cancel
Showing results for 
Search instead for 
Did you mean: 
TFP
6 - Interface Innovator
6 - Interface Innovator

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.

TFP
6 - Interface Innovator
6 - Interface Innovator

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.