Hi all,
I have a script in automation set to run "When record matches conditions" when a specific field value = Empty.
The script is designed to Fill in the blanks from the last record field with value and dragdown the value until last row or until the field value is not equal Empty.
let mytable = base.getTable("table name"); let query = await mytable.selectRecordsAsync(); let previous = ""; for (let record of query.records) { let current = record.getCellValue("field name"); if (current) { previous = current; } else { await mytable.updateRecordAsync(record, {"field name": previous}) } } |
The script runs successfully every time in Extension, unfortunately in Automation it runs but runs with empty values. The automation seems to run as required if the first 2 rows are filled in.
Thanks











