Hey everyone,
I'm working on migrating data from an old database to a new Airtable base, and I've set up linked tables. I've also created a script extension that successfully migrates a record when I manually select it within the extension.
My goal is to embed this script in a button field on my interface. This button should allow users to run the script directly on the current record they are viewing, without having to open the script extension and select the record manually.
Here are my main questions:
-
How can I pass the current record (the parent of the button) as an input context to my script when the button is clicked? I need the script to know which record it should operate on.
-
I've noticed that when I link the button to my script, the button appears disabled. Is this because the script is expecting manual input (like selecting a record from within the extension itself), and if so, how can I configure it to be runnable directly from the button?
Any insights or examples on how to achieve this would be greatly appreciated! Thanks in advance.