Apr 23, 2021 03:53 AM
Hi there,
I’m read lots of topics here on updating single select fields in Airtable, but none through Airtable Automations.
My input is a formula that generates a status (UPCOMING, IN PROGRESS, SENT) and the desired output is to copy this value in a single select field (UPCOMING, IN PROGRESS, SENT).
I’ve tried to run this via Airtable Automations with different triggers (When a record matches condition, when a record is created and when a record is updated) but none seems to work effectively even though the run history tells me the run was successful.
Seems fairly easy and yet do not understand what does not work in my automation.
Anyone out there has already done this?
Solved! Go to Solution.
Apr 23, 2021 10:15 PM
The problem is you are expecting the Automation to go and find records which already meet the set conditions. Automations only run when the “thing in question” changes to meet the conditions. Since in your demo video (a) you were running a test therefore only the test record would have been updated anyway, and (b) all the records you were gesturing toward already met the conditions before the automation was turned on, that is why nothing in your data changed.
Ergo, your original setup was working exactly as it technically should. Your trigger should probably instead look for confirmation that {Statut} does not equal {Status in single select field}
. You can’t directly check for that within the Automation, so consider a formula field with this formula:
IF(
AND(
{Statut} != {Status in single select field},
OR(
FIND("IN PROGRESS", {Statut}),
FIND("UPCOMING", {Statut}),
FIND("SENT", {Statut})
)
),
true,
false
)
The above method will force the Automation to run for your currently mismatched statuses.
Apr 23, 2021 06:23 AM
Hi @oceanseleven11 and welcome to the community!
Your flow should run fine. Could you add some screenshots from your automation please?
Apr 23, 2021 06:48 AM
Hi @Databaser and thanks for your reply!
Yes here you go!
Don’t hesitate to ask me any question to figure out what’s not working!
Apr 23, 2021 07:14 AM
Somehow I managed to make the automation work with a “when a record is updated” trigger but the problem is that it won’t update the stock record unless those records are actually modified…
Apr 23, 2021 07:51 AM
Hmm, that’s odd. Should work fine with the “machtes conditions” trigger. Let’s see if someone else can figure it out :man_shrugging:
Apr 23, 2021 10:15 PM
The problem is you are expecting the Automation to go and find records which already meet the set conditions. Automations only run when the “thing in question” changes to meet the conditions. Since in your demo video (a) you were running a test therefore only the test record would have been updated anyway, and (b) all the records you were gesturing toward already met the conditions before the automation was turned on, that is why nothing in your data changed.
Ergo, your original setup was working exactly as it technically should. Your trigger should probably instead look for confirmation that {Statut} does not equal {Status in single select field}
. You can’t directly check for that within the Automation, so consider a formula field with this formula:
IF(
AND(
{Statut} != {Status in single select field},
OR(
FIND("IN PROGRESS", {Statut}),
FIND("UPCOMING", {Statut}),
FIND("SENT", {Statut})
)
),
true,
false
)
The above method will force the Automation to run for your currently mismatched statuses.
Apr 25, 2021 11:45 PM
Hi @Kamille_Parks, thanks for your very clear & creative answer!
I do understand now better how automations work :winking_face:
Thanks again and have a nice day!