Skip to main content

Open url from an automation

  • June 14, 2023
  • 6 replies
  • 194 views

Forum|alt.badge.img+5

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

Forum|alt.badge.img+5
  • Author
  • Inspiring
  • 5 replies
  • June 14, 2023

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

 

 


Forum|alt.badge.img+18
  • Inspiring
  • 272 replies
  • June 14, 2023

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

 


Forum|alt.badge.img+5
  • Author
  • Inspiring
  • 5 replies
  • June 14, 2023

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

 


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.


Forum|alt.badge.img+6
  • New Participant
  • 4 replies
  • September 19, 2024

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 ! 

 


TheTimeSavingCo
Forum|alt.badge.img+31
  • Brainy
  • 6457 replies
  • September 19, 2024

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)

 


Forum|alt.badge.img+6
  • New Participant
  • 4 replies
  • September 19, 2024

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

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

 


it's works great thanks !