Jan 05, 2021 04:28 PM
Hi there - I am trying to configure an automation but when I put in output.text and recordAsync, I am told these are not functions and receive an error.
What can I do to fix this?
Jan 11, 2021 10:53 AM
Hi Rose,
Thanks for your question!
You can refer to our Scripting Documentation to see which functions are available in the scripting app vs. automations scripting (functions that are only available in one or the other will have a badge saying “App only” or “Automations only” in that documentation).
ouput.text
isn’t available in automations scripting, since there is no output displayed in an automations script like there is in scripting app. In an automations script, you can use output.set to pass values from your script to subsequent action steps in your automation, or you can use console.log statements to print other values in the automation run log.
As for recordAsync – there is no recordAsync function in Airtable scripting, but the functions selectRecordsAsync, createRecordAsync, updateRecordAsync, etc. are all available in automations scripting.
I hope this helps!
May 26, 2021 09:33 AM
Thanks for the reply, I was actually puzzled about this, because I totally missed the little tag that specified if it’s app/automation specific. Actually, I don’t even know what the difference is between an app vs. an automation, so that lead to a lot of confusion with these docs (why is this object not being recognized?)
It would also be great to have examples delineated as app-specific or automation-specific, to see what the best approaches are for both.