1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-15 11:56:36 +02:00

73 lines
1.2 KiB
Markdown
Raw Normal View History

---
sidebar_position: 2
---
# Get base tables
Gets the schema of base tables
2024-07-10 13:58:29 +03:00
`Function GetDatabaseTables(Val Token, Val Base) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Base | --base | String | Base identifier |
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-02 20:28:02 +03:00
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "app9bSgL4YtTVGTlE";
Result = OPI_Airtable.GetDatabaseTables(Token, Base);
```
```sh title="CLI command example"
oint airtable GetDatabaseTables --token %token% --base "apptm8Xqo7TwMaipQ"
```
```json title="Result"
2024-10-03 09:45:14 +03:00
{
"tables": [
{
2024-10-08 20:15:58 +03:00
"id": "tbl6wlzce0XpweN9s",
2024-10-03 09:45:14 +03:00
"name": "TestTable",
2024-10-08 20:15:58 +03:00
"primaryFieldId": "fldgRQtommBB7A2RV",
2024-10-03 09:45:14 +03:00
"fields": [
{
"type": "number",
"options": {
"precision": 0
},
2024-10-08 20:15:58 +03:00
"id": "fldgRQtommBB7A2RV",
2024-10-03 09:45:14 +03:00
"name": "Number"
},
{
"type": "richText",
2024-10-08 20:15:58 +03:00
"id": "fldUTbHtknQQAQqjN",
2024-10-03 09:45:14 +03:00
"name": "String"
}
],
"views": [
{
2024-10-08 20:15:58 +03:00
"id": "viwlaL8T86CAZrox2",
2024-10-03 09:45:14 +03:00
"name": "Grid view",
"type": "grid"
}
]
}
]
}
```