I am setting up a webhook triggered by an event in Airtable. However, I can’s seem to pass the Airtable “recordid” to the webhook. It inputs fine in Airtable, but “recordid” in the bundle in the webhook in Make is “undefined”. I am running a scenario to “Get Airtable Record” as the step after the webhook and want to pick up the record that triggered the webhook and thus need the recordid to be passed to Make. This is the automation script I used:
Thank you for your reply and for joining the discussion. I did try this script, as I found this thread in my search to find a solution. However it still gives me an output of “undefined” as opposed to the record ID.
I fixed it!! I created a formula field to extract the record id with Record_ID() and used that field instead and now it is output in the webhook in the Make scenario:
It probably wasn’t the creation of the formula that fixed it. Airtable mistakenly triggers the Make webhook with no value at all while you are still writing the JavaScript, but if you simply run the Airtable automation after the first mistaken empty run, it will send the RecordID to Make. This is a bug in Airtable.
I ran a test with another one that was active, same set up with the webhook. Still “undefined”, but when I use the script you suggested it worked, with both the system Id and the extracted one.