1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-03 22:39:12 +02:00
Files
OpenIntegrations/docs/en/md/Airtable/Working-with-databases/Get-database-tables.md
Vitaly the Alpaca (bot) dd996a47a5 Main build (Jenkins)
2024-10-03 09:45:14 +03:00

1.2 KiB

sidebar_position
sidebar_position
2

Get base tables

Gets the schema of base tables

Function GetDatabaseTables(Val Token, Val Base) Export

Parameter CLI option Type Description
Token --token String Token
Base --base String Base identifier

Returns: Map Of KeyAndValue - serialized JSON response from Airtable


    Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
    Base  = "app9bSgL4YtTVGTlE";

    Result = OPI_Airtable.GetDatabaseTables(Token, Base);
    
  oint airtable GetDatabaseTables --token %token% --base "apptm8Xqo7TwMaipQ"

{
 "tables": [
  {
   "id": "tblFtDKkWKGvZ1F9f",
   "name": "TestTable",
   "primaryFieldId": "fld21wus8WHDucWpy",
   "fields": [
    {
     "type": "number",
     "options": {
      "precision": 0
     },
     "id": "fld21wus8WHDucWpy",
     "name": "Number"
    },
    {
     "type": "richText",
     "id": "fldrD3Ibd3tNZCDpY",
     "name": "String"
    }
   ],
   "views": [
    {
     "id": "viwPqKaOywFzczxw8",
     "name": "Grid view",
     "type": "grid"
    }
   ]
  }
 ]
}