1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-13 22:16:54 +02:00

48 lines
1.1 KiB
Markdown
Raw Normal View History

---
sidebar_position: 1
---
# Create field
Creates a new field in the table
2024-07-10 13:58:29 +03:00
`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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-02 20:28:02 +03:00
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "app9bSgL4YtTVGTlE";
Table = "tblDUGAZFZaeOwE6x";
Name = String(New UUID);
Field = OPI_Airtable.GetNumberField(Name);
Result = OPI_Airtable.CreateField(Token, Base, Table, Field);
```
```sh title="CLI command example"
oint airtable CreateField --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --fielddata %fielddata%
```
```json title="Result"
2024-10-02 20:28:02 +03:00
```