Skip to main content

Get base tables

Gets the schema of base tables

Function GetDatabaseTables(Val Token, Val Base) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Base--baseStringBase identifier
Returns

Map Of KeyAndValue - serialized JSON response from Airtable

1C:Enterprise/OneScript code example
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appJiRrCJhRhnaVAo";

Result = OPI_Airtable.GetDatabaseTables(Token, Base);
oint airtable GetDatabaseTables \
--token "***" \
--base "app86bmgLaVuoXh4T"
Result
{
"tables": [
{
"id": "tbl7RiHedDu9oSPi8",
"name": "TestTable",
"primaryFieldId": "fldjQy39z6mK3NgHH",
"fields": [
{
"type": "number",
"options": {
"precision": 0
},
"id": "fldjQy39z6mK3NgHH",
"name": "Number"
},
{
"type": "richText",
"id": "fld8sJRtJfudYSGDh",
"name": "String"
}
],
"views": [
{
"id": "viwpaiNpAINZddhe0",
"name": "Grid view",
"type": "grid"
}
]
}
]
}