Airtable today supports the linking of one table to another via a field, but that field must be populated either by:
Having the user key/select the appropriate value in the linked field
Using a manual process to occasionally populate data (i.e. copy/paste)
Using a 3rd party service like Zapier or Integromat to listen for record changes and populate the value
Option 1 works, but can be annoyingly inefficient from a data entry perspective.
Option 2 is too kludgy and isn’t practical for anything beyond a 1 time data population.
Option 3 adds complexity and the need to learn/bring in another system.
Ideally, there’d be a way to auto-populate the Linked Field using a formula. The linking would either find a correlated record in the linked table, or if none found, then create a new record.
Page 1 / 1
I agree, creating a new type of link field that could be generated from a formula would make the system much more powerful. It would be truly transformative.
I agree too. The auto-population of a linked field would be incredibly useful.
After spending a few hours trying to find a solution for this, I came across Matt’s post and used the Zapier option, which is not ideal and makes a very simple requirement far more complicated that it should be.
Upvote this feature. We currently use Zapier for this.
Totally agree. This is one of our Top 10 Feature Requests for Airtable. It is the bedrock of all relational database systems…
…and so is the ability for us to CHOOSE which fields should relate to one another in 2 different tables. In other words, we don’t always want to relate to the primary key field in another table.
Now granted, Airtable didn’t set out to become a relational database system — they set out to be a simple spreadsheet program with some extra database features built into it.
But, since we’re on the topic of turning Airtable into an advanced relational database system — LOL! — I might as well talk about the other big missing feature:
We need the ability for MULTI-CRITERIA RELATIONSHIPS (using 2 or more fields to create the relationship).
I think that the Airtable engineers may want to steal some ideas from how elegantly FileMaker conquered these problems, and how FileMaker shifted their platform over the years. FileMaker shifted from a model of NO RELATIONSHIPS AT ALL in the 1980’s (outside of an automated “one-way, single direction” copying & pasting of data) to a SINGLE-CRITERIA relationship structure (although you had the freedom to choose ANY field to link to, not just the primary field) to a MULTI-CRITERIA relationship structure today.
This feature is needed yesterday!!! Update +1
As a relative novice in using Airtable I am surprised to find this isn’t here - I thought that was the point! But useful to quickly find it isn’t possible so saving me lots of time trying to find out about formulas. Copy / paste for me today.
Agreed! Totally thought this would already be integrated into this software.
Would love to see an update.
This feature is essential to my business, I can’t believe it still hasn’t been implemented… I need to setup literally thousands of linked records, and the only way to do it within airtable is by doing each record indvidually!!
This feature is essential to my business, I can’t believe it still hasn’t been implemented… I need to setup literally thousands of linked records, and the only way to do it within airtable is by doing each record indvidually!!
That’s actually not true — you can link a gigantic batch of records in one fell swoop, simply by converting an existing field to a “linked record” field. If any matches are found in the PRIMARY FIELD ONLY of the linked table, Airtable will link your records appropriately. If it doesn’t find any matches, it will create new linked records in the other table.
I also recently ran across the following post that talks about using Scripting Block to auto-populate linked records (in this case for a junction table). I haven’t tried it yet, but thought I’d pass along.
I also recently ran across the following post that talks about using Scripting Block to auto-populate linked records (in this case for a junction table). I haven’t tried it yet, but thought I’d pass along.
One more update to my original post for those interested. I leveraged the recommendations from the linked post below to use an Automation. I created a couple of fields in my base table. One field that calculates the value I want to populate into the linked field. Another field that compares that value against the current linked field value, which is what’s used to flag records where the linked field value needs to be updated.
I then created an Automation with a Trigger of “When a record matches a condition” (set to key off my calculated field) and a Scripting action. I don’t Javascript but used the code snippet from the linked post and muddled my way through it.
Any further updates?
After significant frustration and attempts to learn to write scripts (and many failures), I finally happened upon this solution in the Apps Marketplace called ‘Link Records by Field’: Link records by fields - Apps - Airtable Marketplace
It worked on my issue. Hope it works for you all too.
For some background, data in my base is populated by a Zap that pulls in survey responses from another application. The responses include the title of a webinar (WebinarTitle) attended by the respondent. I wanted to autofill a linked record field (WT) with the webinar title, so that I could have a separate table for information about the webinar.
I set up an update automation with the following steps:
Trigger: When a record is created (in my ProdData table)
Action: Update record (in the same ProdData table). I selected the Airtable record ID from step1 (so that it would select the same record that was just created). Then I told it to update my linked record field (WT) with the text from my WebinarTitle field.
First attempt result:
This worked, however any webinar titles that had commas in them split and created multiple records in the linked table, which is not what I wanted. (Note: This only happens if you’re using a field with commas in it. If there are no commas in your data, this error should not occur and the steps up to this point should be enough.)
To fix this error, I followed the instructions in the “Using a formula to add quotes in bulk” section of this article - I created a new formula field (WTx) to treat the title as one chunk of text, rather than a list of items.
This is the formula I used:
‘"’ & {WebinarTitle} & ‘"’
This added quotation marks to the beginning and end of the webinar titles in my WTx field.
Then I went back to the action step of my automation and replaced the WebinarTitle field with my new formula field (WTx).
Second attempt result:
Yay! This did exactly what I wanted it to.
After significant frustration and attempts to learn to write scripts (and many failures), I finally happened upon this solution in the Apps Marketplace called ‘Link Records by Field’: Link records by fields - Apps - Airtable Marketplace
It worked on my issue. Hope it works for you all too.
This app worked for me !
Is this still not updated 4 years after this thread?