Group products
Groups products based on similar sets of properties
Function GroupProducts(Val ProductsArray, Val ExistingGroup = "", Val Parameters = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
ProductsArray | --items | Array Of String | ✔ | Array of product IDs |
ExistingGroup | --sellgroup | String | ✖ | ID of the existing group, if needed |
Parameters | --auth | Structure Of String | ✖ | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - serialized JSON response from VK
1C:Enterprise/OneScript code example
Parameters = GetVKParameters();
Item1 = "11831702";
Item2 = "11831703";
ProductsArray = New Array;
ProductsArray.Add(Item1);
ProductsArray.Add(Item2);
Result = OPI_VK.GroupProducts(ProductsArray, , Parameters);
- Bash
- CMD/Bat
oint vk GroupProducts \
--items ""[11838525,11838526]"" \
--auth ""/tmp/2hopvy1w.qfh.json""
oint vk GroupProducts ^
--items ""[11838525,11838526]"" ^
--auth ""/tmp/2hopvy1w.qfh.json""
Result
{
"response": {
"item_group_id": 489458
}
}