You can get the record id of the triggering record and any of its field values as input variables using the automations version of input.config
. There is a link to an example in the automations script editor.
Is there a way to update the record from my script, after I’ve done the processing? I’m trying something like this:
Updated: I think I found the solution from the error message. I can pass in a recordId; I thought it had to be record, which I didn’t have.
await table.updateRecordAsync(config.recordId, {
theProp: theNewData,
});
Is there a way to update the record from my script, after I’ve done the processing? I’m trying something like this:
Updated: I think I found the solution from the error message. I can pass in a recordId; I thought it had to be record, which I didn’t have.
await table.updateRecordAsync(config.recordId, {
theProp: theNewData,
});
Hello Isle,
I am struggling with exact same problem. Can you explain a little bit more how did you come up with a solution? I am new to JS and I was not able to make this line of code work.
Thank you