1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-27 21:48:56 +02:00
Vitaly the Alpaca (bot) dd996a47a5 Main build (Jenkins)
2024-10-03 09:45:14 +03:00

1.2 KiB

sidebar_position
1

Create field

Creates a new field in the table

Function CreateField(Val Token, Val Base, Val Table, Val FieldStructure) Export

Parameter CLI option Type Description
Token --token String Token
Base --base String Base identifier
Table --table String Table identifier
FieldStructure --fielddata Structure of KeyAndValue Description of the new field

Returns: Map Of KeyAndValue - serialized JSON response from Airtable


    Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
    Base  = "app9bSgL4YtTVGTlE";
    Table = "tblDUGAZFZaeOwE6x";
    Name  = String(New UUID);

    Field  = OPI_Airtable.GetNumberField(Name);
    Result = OPI_Airtable.CreateField(Token, Base, Table, Field);
    
  oint airtable CreateField --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --fielddata %fielddata%

{
 "type": "number",
 "options": {
  "precision": 0
 },
 "id": "fldaTG2LVgCKFI9rl",
 "name": "71dad4ae-4aee-40f7-871c-5701f5aa5fee"
}