Sometimes when new records are created, you might want to link new records to old records. This is exactly what I explain in this article. You will learn how to automatically link a new record to an old record from another table. To explain this, we will walk through the example of a school base. In this base, we would like to connect each new student created with a teacher, basically assigning each teacher to a student. Let's learn how to Link Records Automatically in Airtable.
Here we have two tables as follows:
To keep everything simple and easy to understand, I have kept minimum fields in both tables. Let's see what we currently have in both tables.
As you can see in the image above, in the teacher's table we have the following fields:
As you can see in the image of the Student's table we have:
For this example, our logic is very simple, as described below:
In order to implement the automation, you need a premium subscription for Airtable. If you already have one, you are good to go. Now let's follow the steps one by one and implement the automation:
Here in configuration we are basically selecting the last created record's data.
Step 5: Now get the code by clicking here and paste it in the script section.
Let's understand what the script is doing here:
That's all you have to do. Now whenever a new record is created for students, a teacher will be automatically assigned to the student. You can use this kind of automation logic in many different ways, depending upon your needs. Fell free to contact me for a free Airtable consultation by Clicking Here