Jan 10, 2021 03:32 PM
I’m trying to use an automation to look for a record in one table to update a record on another table.
Solved! Go to Solution.
Jan 10, 2021 04:45 PM
You can’t do that with automations unless:
(1) you link your tables
or
(2) you write a custom JavaScript script to do this
or
(3) you use a no-code/low-code automation platform like Integromat.
Automations can’t search for something in a table, such as someone’s name. Automations can only specify records by their Record ID.
You might be confused because you’ve never seen the Record ID before. You can see it by creating a formula field and setting it to this function: RECORD_ID()
. That will show you the record ID for each record.
If you link your tables, Airtable actually stores the Record ID in the linked record field (even though you visually see the text of the primary field). So you can use an automation to grab the Record ID from the linked record field and then use that same Record ID in the other table.
BTW: One very important thing to note is that this technique will only work if you have ONE linked record in your linked record field. If you have multiple linked records in your linked record field, you’ll have to use another method of doing this (see options #2 and #3 above).
Jan 10, 2021 03:50 PM
You have to choose the Record ID for where it asks for Record ID.
Jan 10, 2021 04:08 PM
Thank you for the reply!
I’ve probably tried this a million different ways lol. I set the Record ID to Record ID and now it says “record does not exist”
Here’s the data in the table that the form will populate
I’m trying to set the automation to use 'Name" field from the Test Update table in the above image and find that name in another table (for this test, I created “Test 2” and update the Test Status field on that table.
Here’s the error I’m getting now.
Jan 10, 2021 04:45 PM
You can’t do that with automations unless:
(1) you link your tables
or
(2) you write a custom JavaScript script to do this
or
(3) you use a no-code/low-code automation platform like Integromat.
Automations can’t search for something in a table, such as someone’s name. Automations can only specify records by their Record ID.
You might be confused because you’ve never seen the Record ID before. You can see it by creating a formula field and setting it to this function: RECORD_ID()
. That will show you the record ID for each record.
If you link your tables, Airtable actually stores the Record ID in the linked record field (even though you visually see the text of the primary field). So you can use an automation to grab the Record ID from the linked record field and then use that same Record ID in the other table.
BTW: One very important thing to note is that this technique will only work if you have ONE linked record in your linked record field. If you have multiple linked records in your linked record field, you’ll have to use another method of doing this (see options #2 and #3 above).
Jan 10, 2021 07:29 PM
Thank you again for all the great advice! You are correct that I was confusing the Record ID and the Primary Field. Thanks for explaining! after reading through this, I think I can simplify what I want to do in another keeping the test results & test status on the same table & form and just add a record type field. Then I can do a rollup to find the latest test result. Unfortunately I don’t know JavaScript and trying to stay away from needing to learn another platform. Thanks again for all your help. Much appreciated!