mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-25 21:39:21 +02:00
89 lines
1.6 KiB
Plaintext
89 lines
1.6 KiB
Plaintext
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get base tables
|
|
Gets the schema of base tables
|
|
|
|
|
|
|
|
`Function GetDatabaseTables(Val Token, Val Base) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Base | --base | String | ✔ | Base identifier |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
|
|
Base = "applgRe17fRzFfVPo";
|
|
|
|
Result = OPI_Airtable.GetDatabaseTables(Token, Base);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint airtable GetDatabaseTables \
|
|
--token "***" \
|
|
--base "app1LBiN2ZxXj0nD6"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint airtable GetDatabaseTables ^
|
|
--token "***" ^
|
|
--base "app1LBiN2ZxXj0nD6"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"tables": [
|
|
{
|
|
"id": "tblbhqzh3PL3cS6Ch",
|
|
"name": "TestTable",
|
|
"primaryFieldId": "fld9JrMjoVLwSPy3C",
|
|
"fields": [
|
|
{
|
|
"type": "number",
|
|
"options": {
|
|
"precision": 0
|
|
},
|
|
"id": "fld9JrMjoVLwSPy3C",
|
|
"name": "Number"
|
|
},
|
|
{
|
|
"type": "richText",
|
|
"id": "fld044xLas7uBdddr",
|
|
"name": "String"
|
|
}
|
|
],
|
|
"views": [
|
|
{
|
|
"id": "viwfJdwEI0dtqJMl6",
|
|
"name": "Grid view",
|
|
"type": "grid"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
```
|