Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Mar 03, 2022 03:01 PM
I am trying to create an automation that will update a record. I want to add a linked record from one field (Field A) to a different field (Field b). Field A will have only one linked record in it. Field B allows multiple linked records.
Right now, whenever i update the record with the info from Field A, it either overwrites everything that was in Field B or it creates a new linked record that merges the info that was in Field A with the info that was previously in Field B.
Is it possible to automate this kind of update?
thanks for any help!
is this possible?
Solved! Go to Solution.
Mar 03, 2022 06:00 PM
You should be able to have both fields’ values by putting a comma in between the 2 fields.
First choose Field B’s value, then put a comma, then choose Field A’s value.
Mar 03, 2022 06:00 PM
You should be able to have both fields’ values by putting a comma in between the 2 fields.
First choose Field B’s value, then put a comma, then choose Field A’s value.
Mar 03, 2022 06:56 PM
Just check if there is a value in the original linked record field first. If there isn’t a value already, the comma might cause problems. You can use a condition in the automation to check for the existence of prior linked records.
Mar 03, 2022 08:29 PM
Great catch! What I wrote above would ONLY work if there was already a pre-existing value. So be sure to use conditions to trap for both situations (pre-existing value & no pre-existing value).
Mar 04, 2022 09:45 AM
Thank you both for your help. That did it!
For posterity and other non-coders out there, i had to add Field B, one comma, and Field B, with NO SPACES between the comma and the fields. and i created two versions of the same action, one with the condition that Field B is NOT empty and one with the condition that Field B IS empty.
PS: it would be great if Airtable prompted some of this coding help, particularly for those of us who use Airtable specifically because we aren’t coders. it could just be part of the help text for this kind of field when building automations.
Oct 29, 2023 09:53 AM - edited Oct 29, 2023 10:23 AM
Hello @kuovonne ! Is this solution still available? I understand exactly what you mean but I can not find the field I am updating available in the options to put it in..
It is only the two steps right? The trigger and the update field one - there isn't a third one between them or anything?
Oct 29, 2023 04:51 PM
The techniques in this thread still work the same.
But you have to know the fields that are involved. If you cannot find them, you may have the wrong table.
Oct 30, 2023 03:08 PM - edited Oct 30, 2023 03:10 PM
I will find it eventually .. Thank you for confirming
If I may ask another one: can we perform math operations in the Create Record fields in an automation ?
For example add two fields with numbers in one of the cells. I can see both numbers I need to use in this case 🙂
Oct 30, 2023 04:11 PM
Airtable automations do not have native support for math operations. You can use a script to perform math, or you might be able to use a formula field to perform the math.