Nov 01, 2023 01:04 AM
Hello! I would like to set up automation using "Run a script" that adds to a table new rows from a name that I give with running numbers. For example:
"Good Morning 1"
"Good Morning 2"
"Good Morning 3"......
This is the script that I use now, the output is
"Good Morning 24"
"Good Morning 25"
"Good Morning 26"......
Would greatly appreciate any help
Nov 01, 2023 05:23 AM
So, what is your goal? Automation doesn't interact with user, it should be triggered by some action. Or from interface with record picker, where it can use data of a selected record. await input.textAsync is not valid in automation script step.
Nov 01, 2023 06:35 AM
There is a lot going on in this script.
Can you tell more about the source of the script? Was it written by hand or with the help of AI?
How familiar are you with JavaScript? What is your interest level in learning more about JavaScript?
What troubleshooting steps have you taken so far?
What does your inputted data look like, including the data for the record and the data you type.
I’m guessing that the script is mixing data types—numbers with text strings that look like numbers.
The script also appears to be a scripting extension and will not run as an automation the way it is written.
But honestly, from what you describe you want, I would go for a much simpler script. In fact, depending on how the data is structured, I would probably use one of my automation helper scripts to convert a number to a list to use in a repeating automation group.
Nov 02, 2023 12:00 AM
I am not familiar with JavaScript, but thanks for your answer.