Can you create new views via script?

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!

1 Like

I think the only think you can create is records.

Hello,

I got the same questions, and a little more:

  • what you just asked ;
  • how to programmatically (by Script Block) do what we can do while creating or modifying one table from UI:
  • add FIELD ;
  • modify FIELD type & its format ;
  • move FIELD between other FIELDS ;
  • rename FIELD ;
  • delete FIELD ;
  • create / modify Linked FIELD ;
  • create / modify LOOKUP FIELD ;
  • create / modify FORMULA ;
    …/…
    because I’m creating my own TABLE Templates
    then I would programmatically (by Script Block) rename, copy and/or move it into its BASE then Create-Read-Modify-Write-Move FIELDs as I just wrote.

@Kasra @Dru_Knox @Stephen_Suen

Best,

olπ

At this time, you cannot programmatically create or modify tables, views, or fields via the scripting block. You’ll have to manually perform those actions in the main table UI.

Thanks, Stephen (and all).

Humbly requesting this feature :pray:

3 Likes

Thanks, Ariel and Stephen
So do I :pray:

1 Like

I can see this being very useful too - one example being to give subcontractors their own read-only view of work assigned to them without having to set them up manually.

2 Likes

Thank you @Stephen_Suen & Script-Block team !
I hope these instructions will be added in a future evolution of Script-Block, in a not too distant future, because I’m tired of cloning my tables-templates by adapting Field-Names and Field-Types and Views by hand.
Thank you for your understanding,
olπ

2 Likes

Automating creating Views, Dashboards… that would be a dream.

At the moment I have to do this manually and it takes ages…

  1. New Project
  2. Create 3 new Views – Add Filters (manually paste name of linked record)
  3. Create Dashboard
  4. Duplicate Blocks from existing Dashboard
  5. Change all Blocks to use new Views

Please help me :pray:

7 Likes

Any updates on this?

Would love to have this option or even a block that can create multiple views.

hi @nino_regala,

Not (yet) a Programmatic Views Manager by Airtable,
but I could hope both these posts will help:

Not yet tried: I’ve first to play with REACT.js and that’s what I’m doing now.

olπ

Hey this great!,
is views.create / update / delete in the pipeline or in the making?
Many are looking forward to have this option - as it will be HUGE.
Thanks,
Onur

2 Likes

Yes, I’m thinking it’s HUGE too
and some workaround I had considered by use of


doesn’t seems to help because Fields Props (field.description eg.) seem to stay Read-Only against any request and expectation…

oLπ

1 Like