Jan 18, 2021 08:27 AM
Hello,
I’m developing a custom integration to generate websites from Airtable.
Wondering if there is any webhook to check when a field is updated via API.
What i want to achieve is to receive it in my server.
Thanks
Jan 18, 2021 08:38 AM
If you are generating updates to Airtable from an API call, why not simply dispatch the webhook call when such API call succeeds?
We use this exact approach for gathering analytics about API transactions. We simply test to ensure that the API call was successful and push analytics into Firebase using a simple webhook interface. But, the API process itself is responsible for informing the analytics system that (a) it made the API request, and (b) the request was either successful or failed and why.
Alternatively, but potentially brittle, is to create a script automation that calls a webhook from Airtable when a record/field has changed. This approach is not ideal for a number of reasons.
This is one of those questions that should be accompanied by details concerning the entire process and why a webhook from Airtable is perceived as needed.
Jan 18, 2021 09:24 AM
Hey Bill, thanks for the reply !
Not i’m not generating updates from my API call, the updates are generated in Airtable but since the sites are static, i want to “redeploy” them whenever the content is updated. So, i have to “listen” airtable whenever is an update but i cannot find the documentation about this.
Jan 18, 2021 09:45 AM - edited Dec 10, 2024 08:39 AM
You could use Airtable’s Automations to run a custom JavaScript that triggers your webhook whenever a record is updated.
If you need help writing your script to trigger your webhook, here is one of the ways that you could instantly trigger an external webhook from Airtable.
You can even setup your own custom webhooks in Make, along with custom webhook responses!
If you've never used Make before, I’ve assembled a bunch of Make training resources in this thread.
Alternatively, for a no-code way of doing the same thing, you could use Make's integrations to "watch for updates to your records" on a predetermined schedule, and then it could trigger your webhook upon any Airtable updates.
Hope this helps! If you’d like to hire an expert Airtable consultant to help you with anything Airtable-related, please feel free to contact me through my website: Airtable consultant — ScottWorld
Jan 18, 2021 10:12 AM
Hey i know about integromat, what i reall want to do is to have the same behaviour as integromat. But as far as i know Integromat is not using any custom javascript trigger, that’s why i’m wondering how they get those changes.
Isn’t there a simple webhook to get notified?
Jan 18, 2021 10:14 AM - edited Dec 10, 2024 08:39 AM
They are using Airtable’s REST API, and they poll it on a regular schedule (for example, every 60 seconds).
Hope this helps! If you’d like to hire an expert Airtable consultant to help you with anything Airtable-related, please feel free to contact me through my website: Airtable consultant — ScottWorld
Jan 18, 2021 10:47 AM
Seriously ? We are in 2021, and there is this thing called Webhook, so you don’t need to be polling the API every 60 secs to get this. What i don’t undersand is why airtable does not offer it publicly or is not yet implemented.
Jan 18, 2021 11:08 AM
Welcome to Airtable, the time machine that takes you back to 1998.
Jan 18, 2021 11:19 AM - edited Dec 10, 2024 08:40 AM
As I mentioned above, you could use Airtable’s Automations which trigger automatically when a record is updated. Then, your script would trigger the webhook. I give the link to an example script above.
Hope this helps! If you’d like to hire an expert Airtable consultant to help you with anything Airtable-related, please feel free to contact me through my website: Airtable consultant — ScottWorld
Jan 18, 2021 11:22 AM
Ok thanks ! Will check the automation @ScottWorld is telling me to