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 "appDODR0bY2MwUeMq"
Result
{
"tables": [
{
"id": "tblhNuUu0ehaaSSPp",
"name": "TestTable",
"primaryFieldId": "fld2IUlZpKqkuayst",
"fields": [
{
"type": "number",
"options": {
"precision": 0
},
"id": "fld2IUlZpKqkuayst",
"name": "Number"
},
{
"type": "richText",
"id": "fld9Fc8MPcDksqqLP",
"name": "String"
}
],
"views": [
{
"id": "viwyjseKLWwcf8FVH",
"name": "Grid view",
"type": "grid"
}
]
}
]
}