Feb 19, 2024 07:46 AM
Is there a way to share a script between a record-create automation and a record-update automation?
Solved! Go to Solution.
Feb 19, 2024 10:43 AM
Each script in each automation is considered a standalone script from Airtable's point of view, even if the code is exactly the same.
Here are some options:
- Manually copy and paste the script into both automations and manually keep any changes in sync. This is the method that I tend to use.
- Have three different automations. Have both the record-create automation and the record-update automation trigger a third automation that contains the script. This way the script is stored in only one place. However, I rarely use this method--it takes an additional automation slot; it takes extra automation runs, it requires an additional field to trigger the scripting automation, and it takes longer to run.
Feb 19, 2024 10:43 AM
Each script in each automation is considered a standalone script from Airtable's point of view, even if the code is exactly the same.
Here are some options:
- Manually copy and paste the script into both automations and manually keep any changes in sync. This is the method that I tend to use.
- Have three different automations. Have both the record-create automation and the record-update automation trigger a third automation that contains the script. This way the script is stored in only one place. However, I rarely use this method--it takes an additional automation slot; it takes extra automation runs, it requires an additional field to trigger the scripting automation, and it takes longer to run.