Apr 07, 2023 03:43 AM - edited Apr 07, 2023 03:48 AM
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);
}
Apr 07, 2023 05:25 AM
I have covered how to do this here.
Apr 10, 2023 01:02 PM
@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?