Hello guys,
I have created an automation that is being executed when a new record is created, what I wanna do is to get that specific new record in the script, the last one, how can I do that?
Hello guys,
I have created an automation that is being executed when a new record is created, what I wanna do is to get that specific new record in the script, the last one, how can I do that?
Hi,
You can choose input parameters, such as trigger record ID, on the left side of script step menu.
All input variables, with names defined by you, passed to script by object input.config()
Then you should do smth like:
let inputData=input.config()
let recordID=inputData.ID
let userName=inputData.name
or, using ES6,
let {recordID, userName}=input.config()
You can also get values as parameters, but depending on the way of record creation, it might be empty, so you can choose another trigger.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.