Help

Re: Airtable Webhook Triggered by Airtable Script

1946 0
cancel
Showing results for 
Search instead for 
Did you mean: 
MBrannon336
5 - Automation Enthusiast
5 - Automation Enthusiast

Please help -

Hi, I am trying to create a webhook in Make that runs based on a status change in Airtable. I am using a script to execute the automation. Unfortunately, I am getting a "recordId: undefined" from the webhook even though my script is returning recordId data. This is causing errors at my Airtable step; screenshots are attached:

// Replace this with URL for your own webhook
const webhookUrl = "https://hook.us1.make.com/.............................................";

const { recordId } = input.config();

try {
const response = await fetch(`${webhookUrl}?recordId=${recordId}`);
console.log(response.status);
} catch (error) {
console.error(error);
}

 

2 Replies 2

I have covered how to do this here.

MBrannon336
5 - Automation Enthusiast
5 - Automation Enthusiast

@ScottWorld Thank you for responding to my plea for help.

Perhaps, I didn't ask my question well. I followed your discussion on webhooks - and I'm pretty sure I have the script correct. The Airtable script returns a value in the "recordID" However, when I run the webhook, it shows "undefined" in the recordID. Does the OAuth connection have anything to do with the webhook?