Jun 14, 2023 05:41 AM
Hi all,
I have a really simple script as part of an automation, that is supposed to open the URL of an interface page item that was created earlier in the same automation.
I'm aware there's a button to open a URL in the interface designer, but then i can't have that button run the automation...
Any ideas? I've searched posts here but all seem to be related to the scripting dashboard and not scripting within automations.
Thank you!
Jun 14, 2023 05:54 AM
I see i didn't copy the code properly
This is the correct code:
function NewTab() {
window.open("https://airtable.com/appXXXXXXXXX/pagXXXXXXXX/"&input.config(NewTask), "_blank");
}
Jun 14, 2023 06:28 AM
The DOM API is not accessible from scripts. (You can access it from a custom extension, however.)
From the docs:
https://airtable.com/developers/scripting
Jun 14, 2023 06:56 AM
Got it! Thank you so much. Are there custom extensions that I can trigger from within an internal airtable automation flow? I'd prefer not to have to move the entire automation to an external system.