Skip to main content

I have two tables I need to link. Ideally, I’d link them on their primary keys, but Airtable doesn’t allow you to link on primary fields. So I created a duplicate field for each table with the same content as the primary field. When I link the tables, however, Airtable doesn’t let me choose which fields to link on. I choose the field in Table A, but Airtable chooses the field in Table B to link to. Unfortunately, instead of linking to the appropriate field in Table B, Airtable goes ahead and makes a new field in Table B with a new row for each row in Table A. I’ve done this before in other bases and Airtable was smart enough to choose the correct field to link on. I tried making the field names the same. No success. I tried having the duplicate field in only one of the two tables as well. Nope.

What in the world is going on, and how do I get Airtable to link the correct fields?

Hi Michael

The links between table are not really from one field to another - but from one record to another. What is displayed in the field is always the contents of the Primary Field (the first one) but what is actually stored is a record ID.

If you want to display the content of another field from a linked table then you can use a Lookup field via the Link to do this.

Under the skin, the linking process creates a field in each table containing the ID of the connected record in the other table.

I hope this helps?


Hi Michael

The links between table are not really from one field to another - but from one record to another. What is displayed in the field is always the contents of the Primary Field (the first one) but what is actually stored is a record ID.

If you want to display the content of another field from a linked table then you can use a Lookup field via the Link to do this.

Under the skin, the linking process creates a field in each table containing the ID of the connected record in the other table.

I hope this helps?


Hello Julian,

Thank you for responding. In Airtable, unless I am missing something, it is not possible to have a linked single record. Only an entire field (i.e., all records in that field) can be linked or not. When I create a linked field (which I will later use to create a lookup field), I select the field in the current table (Table A) and then use the menu to link Table A to Table B. I can choose which field in Table A I am linking on, but I cannot choose the field in Table B. In the past, Airtable has appeared to use what it calls the Primary Field of Table B. However, for some unknown reason, it is not doing that in this case. Rather, it is creating a complete list of duplicate records with the Primary Field of Table B plus a new field also in Table B. The result is twice as many records, half of them all blank except for the primary field, which contains the duplicate data. For all intents and purposes, Airtable is failing to link the fields of the two tables.

I have confirmed that the data in the primary field of Table B precisely match the data in the linked field in Table A. There are no extra spaces or other invisibles. I’ve re-done the process multiple times and it always fails, for no apparent reason.


Hallelujah, I did it one last time, and this time it worked. Ugh.


Great - would love to know what went wrong!!


Hello Julian,

Thank you for responding. In Airtable, unless I am missing something, it is not possible to have a linked single record. Only an entire field (i.e., all records in that field) can be linked or not. When I create a linked field (which I will later use to create a lookup field), I select the field in the current table (Table A) and then use the menu to link Table A to Table B. I can choose which field in Table A I am linking on, but I cannot choose the field in Table B. In the past, Airtable has appeared to use what it calls the Primary Field of Table B. However, for some unknown reason, it is not doing that in this case. Rather, it is creating a complete list of duplicate records with the Primary Field of Table B plus a new field also in Table B. The result is twice as many records, half of them all blank except for the primary field, which contains the duplicate data. For all intents and purposes, Airtable is failing to link the fields of the two tables.

I have confirmed that the data in the primary field of Table B precisely match the data in the linked field in Table A. There are no extra spaces or other invisibles. I’ve re-done the process multiple times and it always fails, for no apparent reason.


I’d wish to have a screenshot of what you have explained :grinning_face_with_sweat:


Hi Michael

The links between table are not really from one field to another - but from one record to another. What is displayed in the field is always the contents of the Primary Field (the first one) but what is actually stored is a record ID.

If you want to display the content of another field from a linked table then you can use a Lookup field via the Link to do this.

Under the skin, the linking process creates a field in each table containing the ID of the connected record in the other table.

I hope this helps?


Hi Julian - I think I am trying to do what you instruct here but not sure how to implement it. I have 2 tables that have a column with the same data. For example, a prospect table and a customer table. In both I have a column that is “status” which has a set of individual states, for example: do not contact, in process, on hold, converted. How can I get the information from the status column that is in prospect table to be duplicated and updated in the customer table without having to do double entry on that column? So I want to link a column in one table to a column to another table. When I label the column as a lookup function, it only allows me to select a full record, not a single column…


Hi Julian - I think I am trying to do what you instruct here but not sure how to implement it. I have 2 tables that have a column with the same data. For example, a prospect table and a customer table. In both I have a column that is “status” which has a set of individual states, for example: do not contact, in process, on hold, converted. How can I get the information from the status column that is in prospect table to be duplicated and updated in the customer table without having to do double entry on that column? So I want to link a column in one table to a column to another table. When I label the column as a lookup function, it only allows me to select a full record, not a single column…


Hi Hilary

I’m not really understanding what your’e trying to do - are you able to share your base so that I can see more clearly?

In general, I would normally start from the basis that I would use the same table for both customers and prospects (unless there’s a good reason not to) after all they are all companies or people (depending on your market). I would use a status field and filtered views to differentiate. This prevents the need to copy data from one to the other and properly caters for the situation where a customer is also a prospect (I’ve certainly been in this situation before).

Julian


From what I understand, we’d want some separation since we may have a way to have “prospects/leads” and leads generated from other processes that might need to be groomed or catalogued separately, and that some of the data that is attached to a lead or prospect may be different than what we want to filter on once they become a “customer.” (and some will be the same).

At least that’s what I gather from our group.

How would I be able to share it?


From what I understand, we’d want some separation since we may have a way to have “prospects/leads” and leads generated from other processes that might need to be groomed or catalogued separately, and that some of the data that is attached to a lead or prospect may be different than what we want to filter on once they become a “customer.” (and some will be the same).

At least that’s what I gather from our group.

How would I be able to share it?


Hi Hilary

I can understand that this may be so - it’s just that I’ve tended to stick to a single Company (B to B) table always when I’ve built CRM databases for my own businesses.

I still don’t really understand what you mean by having a column in 2 tables with the same data. Do you mean you have a record for the same company in each table and the values in a particular column should be the same in both?

If so, there are 2 ways to deal with this - one would be to have Zapier update one from the other - but this would involve quite a few Zaps and views - and you would have issues around which is the master record etc. Alternatively, follow my suggestion and merge the data into one table - you can the use Views to filter data by Lead/Prospect/Customer and each view could display just the columns you need for the category concerned.

Julian


Yes - in a record (row) in 2 tables, some of the columns have the same data - for example we have a one column that indicates the state of their annual contract with us (good, needs renewing, in progress, don’t renew) and a second lets us know if we want to contact them (Do not contact, on hold, moved to lead). So if we update it on one table, we’d like the record to also update the second table.


I am new to AirTable, this is a very good explanation of what is happening to me. I thought I was the one messed up, but it seems the software is not behaving as helpful as it could. Great enhancement idea.


I’d wish to have a screenshot of what you have explained :grinning_face_with_sweat:


Hi,

I’m new to airtable and responding to an older post. Here’s screen shots of linked field from Table A, then in Table B information from Table A field populates in Table B primary field AND creates a separate field.
Every time I try to link two fields this occurs??? Help?

Thanks, Pat

…Ugh as a new user I can only attach 1 photo :frowning: Here’s table B: with the info from Table A in the primary field and a created field also


Hi,

I’m new to airtable and responding to an older post. Here’s screen shots of linked field from Table A, then in Table B information from Table A field populates in Table B primary field AND creates a separate field.
Every time I try to link two fields this occurs??? Help?

Thanks, Pat

…Ugh as a new user I can only attach 1 photo :frowning: Here’s table B: with the info from Table A in the primary field and a created field also


I’m the OP on this thread, and my problem seems to be a lot like yours. The only thing I could figure out is that there must be some tiny difference between the data in Table A and the data in Table B. Check to make sure that there isn’t an extra space in the fields in one of the two tables.


Every instance of linking between tables has to have a discreet field in each table being linked in which the link is made explicit to the user. If you create a “Link to Table B” in Table A, there will be a corresponding “Link to Table A” created for you in Table B. This is how Airtable works. And for reasons of simplicity in their product, Airtable has opted not to allow the primary field of a table to be a Link to another Table.

What you are experiencing is Airtable’s intended behavior. Simply hide any fields you don’t wish to see.


I’m the OP on this thread, and my problem seems to be a lot like yours. The only thing I could figure out is that there must be some tiny difference between the data in Table A and the data in Table B. Check to make sure that there isn’t an extra space in the fields in one of the two tables.


Thanks Michael,

It’s possible I’ve created an issue while trying to figure this out. It’s just that it happens every time with attempted linking of fields from different tables.

In the pictured link Table A had 4 attachments, Table B created a new row for each attachment (in the primary field and a separate field?

Also, If I’m linking a list of 10 names from a field in table A, why would there be any difference in the list of names when created in Table B, (which puts them in the primary field and creates a field)?

Thanks for your help. Sorry if I’m obtuse, I’m a newbie. Thanks, Pat


Every instance of linking between tables has to have a discreet field in each table being linked in which the link is made explicit to the user. If you create a “Link to Table B” in Table A, there will be a corresponding “Link to Table A” created for you in Table B. This is how Airtable works. And for reasons of simplicity in their product, Airtable has opted not to allow the primary field of a table to be a Link to another Table.

What you are experiencing is Airtable’s intended behavior. Simply hide any fields you don’t wish to see.


Thanks, but why is it adding the information from the field of table A to the bottom of the Primary field of Table B?

Thanks, Pat


Hmmm @Patrick813 – I’m a bit confused by your questions and what exactly you are wanting to accomplish.

When you create the link between records, no data is automatically carried over from one record to another. You have to use either Lookup Fields or Rollup Fields to pull data from Table A into Table B. If all you have in Table B is a “Names” field, and it’s a plain text field, linking to a record from Table A will not fill that “Name” field. If you change the “Name” field to a “Lookup” field and point it at the record in the “Link to Table A” field, and at the field from Table A that has the “Name” you want to pull over, then it will automatically fill that field when you create the link to a record.


Hmmm @Patrick813 – I’m a bit confused by your questions and what exactly you are wanting to accomplish.

When you create the link between records, no data is automatically carried over from one record to another. You have to use either Lookup Fields or Rollup Fields to pull data from Table A into Table B. If all you have in Table B is a “Names” field, and it’s a plain text field, linking to a record from Table A will not fill that “Name” field. If you change the “Name” field to a “Lookup” field and point it at the record in the “Link to Table A” field, and at the field from Table A that has the “Name” you want to pull over, then it will automatically fill that field when you create the link to a record.


Thanks this is helpful.

What I’ve tried is only to take a field in Table A (mostly tried single text fields, but the picture shows an attachments field)

an example of what I’ve been doing is: I click “List of Names” Field (single text field) in Table A, link to Table B. Then table B adds the list of names from Table A at the bottom of the Primary filed as well as adds a field.

Thanks again for your help.


Thanks this is helpful.

What I’ve tried is only to take a field in Table A (mostly tried single text fields, but the picture shows an attachments field)

an example of what I’ve been doing is: I click “List of Names” Field (single text field) in Table A, link to Table B. Then table B adds the list of names from Table A at the bottom of the Primary filed as well as adds a field.

Thanks again for your help.