Hi folks ~
I was struggling with this yesterday and saw that there were a bunch of folks asking for a similar thing, so I figured I’d share the solution I created.
Problem: How to get row IDs from newly-created Airtable records synced with Glide back into Airtable, where they combine with a URL string to form a link to the corresponding page in the app.
Constraints:
- The Airtable row itself is created by an automation:
- Glide form on a Glide table triggers an Action
- Action triggers a webhook
- Webhook triggers a Zap that (among other things) creates an Airtable record
- Airtable record then syncs back to Glide, creating a new Glide row ID
- The sync that brings the new Airtable row into glide is delayed by anywhere from 2 to 10 minutes
- Synced Airtable rows are assigned a row ID by Glide, and are not automatically synced back to Airtable
- Glide updates cannot be used to trigger Zaps, so the action would have to begin within Glide
Solution:
Add a step to the already-existing Action that waits for the Airtable record to sync, and then another to set the newly-created row ID as a text value.
Here it is step by step:
- In the Glide table triggering the Action, create a relation column for the synced Airtable, and a lookup column pulling the newly-created row ID:
1a. Also create an empty Single Line Text column in the Airtable that will eventually receive the Glide row ID created when the new record syncs with Glide:
- In the Action, after the webhook which sends Zapier the data required to create the Airtable record, insert a “Wait for condition” step that will trigger when the synced Airtable record populates the relation column:
I set the timeout at 600 seconds because the synchronization seems to take somewhere up to 10 minutes, but never more.
-
Create a final step in the Action to set the newly-created Glide row ID into a text field in the synced Airtable record:
-
Throw together a formula column that puts the row ID at the end of your app’s unique URL string, and now you have a link to the app page for the Airtable record:
I’ll be happy to answer questions - and if someone has an easier way to do this, I’m completely open to learn!
Cheers,
Shawn