Create records
Creates one or an array of records by description or an array of field value descriptions
- Parameters
- Advanced call ?
Function CreatePosts(Val Token, Val Base, Val Table, Val Data) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Base | --base | String | ✔ | Database identifier |
| Table | --table | String | ✔ | Table identifier |
| Data | --data | Structure, Array of Structure | ✔ | Set or array of sets of pairs Key : Value > Field : FieldValue |
Returns
Map Of KeyAndValue - serialized JSON response from Airtable
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appJiRrCJhRhnaVAo";
Table = "tblFGmvh2eldM8MuJ";
Number = 10;
String = "Hello";
RowDescription1 = New Structure("Number,String", Number, String);
RowDescription2 = New Structure("Number,String", Number, String);
ArrayOfDescriptions = New Array;
ArrayOfDescriptions.Add(RowDescription1);
ArrayOfDescriptions.Add(RowDescription2);
Result = OPI_Airtable.CreatePosts(Token, Base, Table, ArrayOfDescriptions);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint airtable CreatePosts \
--token "***" \
--base "app86bmgLaVuoXh4T" \
--table "tblGKn3wdfOQGs7G3" \
--data "{'Number':'10','String':'Hello'}"
:: JSON data can also be passed as a path to a .json file
oint airtable CreatePosts ^
--token "***" ^
--base "app86bmgLaVuoXh4T" ^
--table "tblGKn3wdfOQGs7G3" ^
--data "{'Number':'10','String':'Hello'}"
Result
{
"records": [
{
"id": "rec9cFXAKhLTU4PcG",
"createdTime": "2026-05-26T14:07:24Z",
"fields": {
"String": "Hello\n",
"Number": 10
}
},
{
"id": "recB78HBdRaIuV7rB",
"createdTime": "2026-05-26T14:07:24Z",
"fields": {
"String": "Hello\n",
"Number": 10
}
}
]
}