Help

Open url from an automation

Topic Labels: Automations
1505 3
cancel
Showing results for 
Search instead for 
Did you mean: 
ShlomoGreen
5 - Automation Enthusiast
5 - Automation Enthusiast

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...

 

function NewTab() {
            window.open(
            "https://google.com_blank");
        }
 
There are no errors, but the URL won't open.

Any ideas? I've searched posts here but all seem to be related to the scripting dashboard and not scripting within automations.

Thank you!

3 Replies 3
ShlomoGreen
5 - Automation Enthusiast
5 - Automation Enthusiast

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");
}

 

 

The DOM API is not accessible from scripts. (You can access it from a custom extension, however.)
From the docs:
script.png

https://airtable.com/developers/scripting

 

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.