Create records
Creates one or an array of records by description or an array of field value descriptions
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
1C:Enterprise/OneScript code example
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appaKLx2yhnY45n6b";
Table = "tblwLZErQh3D39If3";
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
oint airtable CreatePosts \
--token "***" \
--base "appUHJhiJ9eMFouSg" \
--table "tbl0Cgy9AVXbpuuqH" \
--data "{'Number':'10','String':'Hello'}"
oint airtable CreatePosts ^
--token "***" ^
--base "appUHJhiJ9eMFouSg" ^
--table "tbl0Cgy9AVXbpuuqH" ^
--data "{'Number':'10','String':'Hello'}"
Result
{
"records": [
{
"id": "rec6tTorlbC3skXIV",
"createdTime": "2025-09-15T22:38:38Z",
"fields": {
"Number": 10,
"String": "Hello\n"
}
},
{
"id": "rec7CBOFbcabns9Bw",
"createdTime": "2025-09-15T22:38:38Z",
"fields": {
"Number": 10,
"String": "Hello\n"
}
}
]
}