I have been able to replicate the script for Running Total as per
console.log(Hello, ${base.name}!);
let table = base.getTable(‘Invoices’);
let view = table.getView(‘Grid view’);
let result = await view.selectRecordsAsync({fields: [‘Amount’]});
let runningTotal = 0;
for (let record of result.records) {
// change the field names here to adapt this script to your base
runningTotal += record.getCellValue(‘Amount’);
await table.updateRecordAsync(record, {
‘Running total’: runningTotal,
});
}
The Automation is turned ON
My question is - I can only seem to get the Running Total result to re-calculate when I am in Automations view and I click to Test action.
Is there something I am missing in my setup for the automation? Also - what is the recommended setup for this automation - do I want it running for every entry or should I have it only run when I need it? Will it slow down my table if it is processing every record as they are inputted?
Thanks!

