Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

App script ok vs automation run script

Topic Labels: Scripting extentions
152 0
Showing results for 
Search instead for 
Did you mean: 

I’ve written this little script and it runs very well as an app.
But if I run it as an automation run script, it runs successfully but does nothing, no update and no error.
I’d like to understand why the automation mode is not effective ?
Thanks for your help.

const tEssai = base.getTable(‘Essai’);
let rec = await tEssai.selectRecordsAsync();
const dte=new Date();
await tEssai.updateRecordAsync(rec.records[0].id, {
“Nom” : “Foo”+dte.getMinutes(),
“date1” : dte

0 Replies 0