The scripting block can streamline your workflows when you want to modify field information, add multiple records at once, filter with complex criteria, and more.
The scripting block is part of Airtable Blocks, a Pro plan feature. Blocks let you extend the functionality of your bases: you can use blocks to bring new information into Airtable, visualize and summarize your records in colorful ways, and even directly integrate your Airtable bases with your favorite apps.
Getting started with the scripting block
Once you have added the scripting block to a dashboard in your base, the block will open up in edit mode with three panes. If you are not able to add the scripting block, your organization may have restricted the use of the scripting block for your account.
Any user can press the "run" button in a scripting block, however, the scripting block respects the permission level of the user running the script. For example, if a certain line of code were to "update a record" or "create a record", then the user running the script would need to have corresponding permission levels, in this case, creator-level permissions, in order to successfully run the script. If the user does not have those permissions, then the scripting block will throw an error code.
Running a script
To run a script, click the "Run" button in the right-hand results pane. If you need to stop the executing script at any time, you can click the red "Stop" button in the upper right. Once the script is complete, you have the option to run it again using the "Run" button.
How can I trigger a script automatically?
As of now, the scripting block executes when you click the run button.
I need a bigger screen for my code.
You can minimize the in-app docs by clicking the down arrow.