Help

Can you create new views via script?

Topic Labels: Scripting extentions
17173 29
cancel
Showing results for 
Search instead for 
Did you mean: 
Ariel_Gross
5 - Automation Enthusiast
5 - Automation Enthusiast

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!

29 Replies 29
BobBannanas
6 - Interface Innovator
6 - Interface Innovator

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π

Stephen_Suen
Community Manager
Community Manager

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:

Thanks, Ariel and Stephen
So do I :pray:

Bruce_Halliburt
6 - Interface Innovator
6 - Interface Innovator

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.

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π

Russell_Bishop1
8 - Airtable Astronomer
8 - Airtable Astronomer

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:

nino_regala
4 - Data Explorer
4 - Data Explorer

Any updates on this?

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