Airtable Component FAQAugust 7, 2019 at 9:51am (Edited 2 weeks ago)
We'll gather the list of questions & answers here
August 7, 2019 at 9:53am
QUESTION: If I want to use multiple datasets in my design, should I create a single database with multiple tables or multiple databases?
- If you want to create different databases you'll get different API URL and you can just paste each of them in a different component as usual.
- If you want to create different tables within a database, you'll need to specify the name of the table you want to take the data from in the URL. See example:
Tab 1: Called Menu https://api.airtable.com/v0/app6I58LfuNihimLf/Menu?api_key=YOUR_API_KEY
Tab 2: Called Menu 2 https://api.airtable.com/v0/app6I58LfuNihimLf/Menu%202?api_key=YOUR_API_KEY
You just need to change the name in the url: Menu? Menu%202?
QUESTION: How do I retrieve the records in the same order as they appear in a specific table view?
ANSWER: To retrieve records in the same order as they appear in a specific table view, you can pass in the "view" parameter in the list records request. Check the list record section under your API docs.
Here is an example of a url: https://api.airtable.com/v0/app6I58LfuNihimLf/Menu?&view=Grid%20view&api_key=YOUR_API_KEY
Note the "&view=Grid%20view"