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.
Sep 19, 2024 05:13 AM
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 !
Sep 19, 2024 05:24 AM
Try adding a "Run a Script" automation and fetch the webhook URL?
let url = "[WEBHOOK URL]"
fetch(url)
Sep 19, 2024 06:06 AM
it's works great thanks !