Can I call a script within another script?

I’m a developer and plan on writing A LOT of different scripts.

Let’s say I create a script that sums the values of a column. I plan on using this script (function) in multiple scripts. Is there a way I can essentially call this script in separate scripts instead of having to copy and paste code all the time?

In other words, can I create global functions? Can I call a script in another script?

The same concept applies to global variables. My script will use the name of one of my columns. But if I change the column name, my script won’t work. I have to manually edit the script and change the column name. Global variables, or at least global to the table (doesn’t have to be the entire base), would enable the script to update automatically.

Check out On2Air: Scripts which was built to solve this problem

Thank you for the link. I’m already paying a lot of money for Airtable Pro. However, paying at least $30/month extra for this is overkill.

1 Like