Skip to main content

I did some searching but wanted to be certain since I’m still relatively new to the scripting block.


Does anyone know if there is a way to create new views?


My use case is that I currently manually create a suite of views each time I add a new client and/or project. For every project I will have an All view that shows everything about it, then an Open view that only shows stuff that’s currently being worked on, an Invoice view that gives me a summary of the tasks that need to be invoiced to make my invoicing faster, etc.


Currently I have template views that I duplicate and update the related filters to have it show the right records. I’d love to automate this with the scripting block, but I don’t see a way to create new views from script.


Am I missing something? Anyone else have any ideas?


Thanks!

Also think this feature would be extremely helpful!


Seconding this feature - would be huge!


I’d be happy just to settle on being able to return Visible Field Names/IDs per view into both the Scripting Extension and an Automation Script. I’m not sure why this particular feature is missing - as we have the ability to hardcode in the visible field object - but there’s no method to simply return and use view field visibility.


For example, here we have the await input.recordAsync method that specifically has an optional “fields” argument - but the only way we can fulfill that fields argument is by manually hard-coding our own fields object - because there’s no way to actually access which fields are visible on a per-view basis.


    let myRecord = await input.recordAsync(`Assign ${element} for ${primaryRecord.getCellValueAsString("Name")} Class`, recordFilter, 
{fields : myViewData:element]});

Okay, it is 2024. Any updates?


Reply