input.fieldAsync with view

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);

1 Like

Good Q, not possible atm as fields are scoped only to Table objects not views. But totally understand why you would want to do that.

Are there any plans to add this functionality? Iā€™m working on a script that could really use this.