Skip to main content

Get property list

Gets the list of properties of group products

Function GetPropertyList(Val Parameters = "") Export

ParameterCLI optionTypeRequiredDescription
Parameters--authStructure Of StringAuthorization parameters. See GetAuthParameters
Returns

Map Of KeyAndValue - serialized JSON response from VK

1C:Enterprise/OneScript code example
Parameters = GetVKParameters();
Result = OPI_VK.GetPropertyList(Parameters);
# JSON data can also be passed as a path to a .json file

oint vk GetPropertyList \
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
Result
[
{
"id": 5885,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11323,
"title": "Новое имя варианта"
},
{
"id": 11324,
"title": "Синий"
},
{
"id": 11325,
"title": "Красный"
}
]
},
{
"id": 5886,
"title": "Цвет",
"type": "text",
"variants": []
},
{
"id": 5887,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11326,
"title": "Желтый"
},
{
"id": 11327,
"title": "Синий"
}
]
},
{
"id": 5888,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11328,
"title": "Новое имя варианта"
},
{
"id": 11329,
"title": "Синий"
},
{
"id": 11330,
"title": "Красный"
}
]
},
{
"id": 5889,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11331,
"title": "Новое имя варианта"
},
{
"id": 11332,
"title": "Синий"
},
{
"id": 11333,
"title": "Красный"
}
]
},
{
"id": 5890,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11334,
"title": "Новое имя варианта"
},
{
"id": 11335,
"title": "Синий"
},
{
"id": 11336,
"title": "Красный"
}
]
},
{
"id": 5891,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11337,
"title": "Желтый"
}
]
},
{
"id": 5893,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11338,
"title": "Новое имя варианта"
},
{
"id": 11339,
"title": "Синий"
},
{
"id": 11340,
"title": "Красный"
}
]
},
{
"id": 5894,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11341,
"title": "Новое имя варианта"
},
{
"id": 11342,
"title": "Синий"
},
{
"id": 11343,
"title": "Красный"
}
]
},
{
"id": 5895,
"title": "Цвет (изм.)",
...