Hi everyone
I’m trying to send data from Airtable to n8n using a webhook when a new user is created.
What I’m doing:
- I have an Airtable automation with the following:
- Trigger: “When a record is created” in the
Sign up
table. - Action: “Run a script” that sends the record data (Name, Email, Account) to my n8n webhook URL.
- In the “Run a script”, I use input variables and set their values from the triggering record using “Insert value from field”.
- Trigger: “When a record is created” in the
js
CopyEdit
let webhookUrl = "https://yomn.app.n8n.cloud/webhook/signup";
let inputConfig = await input.config();
let payload = {
Email: inputConfig.Email,
Name: inputConfig.Name,
Account: inputConfig.Account
};
let response = await fetch(webhookUrl, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(payload)
});
The Problem
Every time the script runs:
- The webhook is triggered
- But the data received in n8n is always the same, with the same static record values.
- Even when a new user signs up, the webhook receives old data.
- In the n8n workflow,
{{$json["Email"]}}
isnull
.
What I’ve already checked:
- The fields are correctly set with “Insert value from field”.
- The automation runs and the test passes.
- The script is correctly sending the request to the right webhook URL.
- I even tried to add a second automation to auto-update the status before triggering the webhook – still the same issue.
What I need
Why does Airtable send old static record data to my webhook?
How can I force the script to always send the latest record values?
Thanks a lot for your help