1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-31 22:05:13 +02:00

89 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 2
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get base tables
Gets the schema of base tables
`Function GetDatabaseTables(Val Token, Val Base) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Base | --base | String | ✔ | Base identifier |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
2025-02-06 20:58:53 +03:00
Base = "appcKJWExq22nSSCZ";
2024-10-15 10:16:04 +03:00
Result = OPI_Airtable.GetDatabaseTables(Token, Base);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint airtable GetDatabaseTables \
2024-10-22 08:59:24 +03:00
--token "***" \
2025-01-10 12:07:46 +03:00
--base "apprMMfGWJFZxWYR5"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint airtable GetDatabaseTables ^
2024-10-22 08:59:24 +03:00
--token "***" ^
2025-01-10 12:07:46 +03:00
--base "apprMMfGWJFZxWYR5"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```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"
}
]
}
]
}
```