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 = "apppSUqWfuxL53HHT";

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