1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-25 12:24:39 +02:00

68 lines
1.1 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...";
2024-10-15 10:07:27 +03:00
Base = "appESy99HYCLbuWlV";
2024-10-02 20:28:02 +03:00
Result = OPI_Airtable.GetDatabaseTables(Token, Base);
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-10-03 09:45:14 +03:00
{
"tables": [
{
2024-10-09 09:42:00 +03:00
"id": "tblbhqzh3PL3cS6Ch",
2024-10-03 09:45:14 +03:00
"name": "TestTable",
2024-10-09 09:42:00 +03:00
"primaryFieldId": "fld9JrMjoVLwSPy3C",
2024-10-03 09:45:14 +03:00
"fields": [
{
"type": "number",
"options": {
"precision": 0
},
2024-10-09 09:42:00 +03:00
"id": "fld9JrMjoVLwSPy3C",
2024-10-03 09:45:14 +03:00
"name": "Number"
},
{
"type": "richText",
2024-10-09 09:42:00 +03:00
"id": "fld044xLas7uBdddr",
2024-10-03 09:45:14 +03:00
"name": "String"
}
],
"views": [
{
2024-10-09 09:42:00 +03:00
"id": "viwfJdwEI0dtqJMl6",
2024-10-03 09:45:14 +03:00
"name": "Grid view",
"type": "grid"
}
]
}
]
}
```