Allow dynamic creation and deletion of views

Use case or problem

I want to automate the creation and deletion of views.

Proposed solution

Can you allow a column of a particular bases view, dynamically generate other bases views, when a condition is met. And delete views when a condition is not met?

Current workaround (optional)

Do it manually.

I guess this would require the creation of “View templates” so that the formula can know what filters to automatically apply

The entire bases format is text only. If you wanted to automate the creation and deletion of views you could edit the base YAML directly.

Sorry, Do you mind showing me an example?

There’s various ways to do this but to my knowledge there isn’t a nice non-techy all in one. I don’t know enough about the problem you’re trying to solve, but here are the parts you’d need to create your own automation.

You’d need scheduled task to monitor whatever the condition is.
Then when the condition is met you’d need a script to run.
The script would then parse the .base file, (or the base code block in your Markdown).
Then the script would write a new view or delete an existing view according to your logic.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.