Hello,
in a automation on Airtable I set up a trigger that, when someone submit a form and create a record in a table named "customer", Airtable run a script that have a vlookup function that read a "Program code" value and insert the "Program Name" from "Code" table. If the vlookup have a correspondence than the value of the cell is equal to the "Program Name" if not the cells value is "Not found".
After this action I set up a script that wait 20 sec. in order to wait the update of the data in the record and then I put a condition that:
If the "Program Name" is "Not found" then send an email "Code not found"
Otherwise (and then it means that "Program Name" have the name of the program) then send another email with the landing page and other info.
If I test manually this automation with the function "Test Automation" with a selected record this action work correctly. But if I submit a form and this automation run with his trigger, the output is always the otherwise condition output.
How it is possible? I see that before the condition start, the field on the inserted record is ready and it is "Not found". How it is possible that the automation not read "Not found"?
Find attacched the structure of the automation. Many thanks!