Help

Re: Open url from an automation

764 0
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!

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

judum
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi there 

I'm beginer in scripts in automation and can't find a way to simply open a webhook when a form is submited. 

I'm getting the record based on my filters, exctracting the webhook generated in my data for this record, but impossible to have to automation simply clickin on it. 

If someone can help me... thanks a lot ! 

 

Try adding a "Run a Script" automation and fetch the webhook URL?

let url = "[WEBHOOK URL]"
fetch(url)

 

it's works great thanks !