Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use fields from a view when retrieving records by view #396

Open
ksune4ka-00x opened this issue Feb 12, 2024 · 0 comments
Open

Only use fields from a view when retrieving records by view #396

ksune4ka-00x opened this issue Feb 12, 2024 · 0 comments

Comments

@ksune4ka-00x
Copy link

I would like to get data from a view using this view's field set. I can get the records using .select({view: "nameOfView"}), but this gets me all the fields, independently whether they are activated in the view or not.

I can also get only selected fields using .select({view: "nameOfView", fields: ["FieldName1", "FieldName2"]}), but in this case I need to pass in a hard-coded list.

When I make select with "view" parameter, it seems more intuitive to me that only the fields selected in the view would be exported.

AirTable exposes metadata of its bases, in particular, for example, that of views : https://api.airtable.com/v0/meta/bases/{baseId}/views/{viewId}, so this could be used to retrieve information about active fields in view.

This is somewhere between a bug and a feature request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant