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
You could use Airtable’s Automations to run a custom JavaScript that triggers your webhook whenever a record is updated.
Alternatively, for a no-code way of doing the same thing, you could use Integromat to watch for updates to your records, and then it could trigger your webhook upon any updates.
(Note that I am a professional Airtable consultant and a Registered Integromat Partner, and the Integromat link contains my personal referral code. If you have a budget for this project and you’d like to hire someone to help setup Integromat for you, please feel free to contact me through my website at ScottWorld.com.)
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
They are using Airtable’s REST API, and they poll it on a regular schedule (for example, every 60 seconds).
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
As I mentioned above, then you need to use Airtable’s Automations which trigger automatically when a record is updated.
If you need further help, I am available for hire. :slightly_smiling_face:
Jan 18, 2021 11:22 AM
Ok thanks ! Will check the automation @ScottWorld is telling me to