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
1C:Enterprise/OneScript code example
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appUIQ8XPNF3PZhGa";
Result = OPI_Airtable.GetDatabaseTables(Token, Base);
- Bash
- CMD/Bat
oint airtable GetDatabaseTables \
--token "***" \
--base "appL8GhM4GHV7TKqd"
oint airtable GetDatabaseTables ^
--token "***" ^
--base "appL8GhM4GHV7TKqd"
Result
{
"tables": [
{
"id": "tblB9JVUCMR9JsWs3",
"name": "TestTable",
"primaryFieldId": "fld5M0Ja2cCbb1Yjx",
"fields": [
{
"type": "number",
"options": {
"precision": 0
},
"id": "fld5M0Ja2cCbb1Yjx",
"name": "Number"
},
{
"type": "richText",
"id": "fldQ1WHucvsF4R7zD",
"name": "String"
}
],
"views": [
{
"id": "viw5oZsXBQMorfIDw",
"name": "Grid view",
"type": "grid"
}
]
}
]
}