mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-09 07:14:16 +02:00
1.2 KiB
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": "flds4h7bSTHA7KYdj",
"name": "62fb2587-373f-4d72-8f03-1be778c2ea54"
}