You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-27 22:18:36 +02:00
90 lines
1.9 KiB
Plaintext
Vendored
90 lines
1.9 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 2
|
|
description: Get base tables and other functions to work with Airtable in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Airtable]
|
|
---
|
|
|
|
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 = FunctionParameters["Airtable_Token"];
|
|
Base = FunctionParameters["Airtable_Base"];
|
|
|
|
Result = OPI_Airtable.GetDatabaseTables(Token, Base);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint airtable GetDatabaseTables \
|
|
--token "***" \
|
|
--base "apppuWpft4xNlV34k"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint airtable GetDatabaseTables ^
|
|
--token "***" ^
|
|
--base "apppuWpft4xNlV34k"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"tables": [
|
|
{
|
|
"id": "tblfWMaSMT6aeQgy4",
|
|
"name": "TestTable",
|
|
"primaryFieldId": "fldnGEKQtwkrMPQ2Q",
|
|
"fields": [
|
|
{
|
|
"type": "number",
|
|
"options": {
|
|
"precision": 0
|
|
},
|
|
"id": "fldnGEKQtwkrMPQ2Q",
|
|
"name": "Number"
|
|
},
|
|
{
|
|
"type": "richText",
|
|
"id": "fldYOo4kJJz1esbsF",
|
|
"name": "String"
|
|
}
|
|
],
|
|
"views": [
|
|
{
|
|
"id": "viwHVXvAX8Yhe1StX",
|
|
"name": "Grid view",
|
|
"type": "grid"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
```
|