I am following from API documentation. This is to capture selected fields.
let table = base.getTable("SP1: Donations");
let field = table.getField("CID");
output.inspect(field);
But what I wanted was to show fields specific for the selected view.
I currently select view via:
let view = await input.viewAsync("Messages will only be sent to records in this view", table);