Skip to main content

Add product to selection

Adds a product to the selection

Function AddProductToCollection(Val ProductsArray, Val Selection, Val Parameters = "") Export

ParameterCLI optionTypeDescription
ProductsArray--itemsArray of string, numberArray of products or product
Selection--selStringSelection ID
Parameters--authStructure Of StringAuthorization JSON or path to .json

Returns: Map Of KeyAndValue - Serialized JSON response from VK


Code example
    Parameters = GetVKParameters();

Product = "9485960";
Selection = "122";

Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters);
CLI command example
    
oint vk AddProductToCollection --items %items% --sel "125" --auth "GetVKParameters()"

Result
{
"response": 1
}