1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-13 11:50:53 +02:00
Vitaly the Alpaca (bot) 19912a210c Main build (Jenkins)
2024-10-08 20:15:58 +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": "tbl6wlzce0XpweN9s",
   "name": "TestTable",
   "primaryFieldId": "fldgRQtommBB7A2RV",
   "fields": [
    {
     "type": "number",
     "options": {
      "precision": 0
     },
     "id": "fldgRQtommBB7A2RV",
     "name": "Number"
    },
    {
     "type": "richText",
     "id": "fldUTbHtknQQAQqjN",
     "name": "String"
    }
   ],
   "views": [
    {
     "id": "viwlaL8T86CAZrox2",
     "name": "Grid view",
     "type": "grid"
    }
   ]
  }
 ]
}