E.g. I want an automation be triggered every Monday OR over webhook.
Solved
Can one automation be triggered in multiple ways?
Best answer by Alexey_Gusev
Hi,
example script step to call webhook. You should define variables for payload in the left panel of code editor. And set correct webhook URL, of course.
let config=input.config()
let payload=JSON.parse(JSON.stringify(config))
console.log(payload)
const WHCentral='https://hooks.airtable.com/workflows/v1/genericWebhook/app_PUTlinkTOwebhookHERE'
const options={method:'POST',body:JSON.stringify(payload),headers:{'Content-Type': 'application/json'}}
const responce=await fetch(WHCentral,options);
const result=(responce.ok)? await responce.json() : responce.statusText;
console.log(result)
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
