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": 5860,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11268,
"title": "Новое имя варианта"
},
{
"id": 11269,
"title": "Синий"
},
{
"id": 11270,
"title": "Красный"
}
]
},
{
"id": 5864,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11280,
"title": "Новое имя варианта"
},
{
"id": 11281,
"title": "Синий"
},
{
"id": 11282,
"title": "Красный"
}
]
},
{
"id": 5865,
"title": "Цвет (изм.)",
"type": "text",
"variants": []
},
{
"id": 5866,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11283,
"title": "Новое имя варианта"
},
{
"id": 11284,
"title": "Синий"
},
{
"id": 11285,
"title": "Красный"
}
]
},
{
"id": 5867,
"title": "Цвет",
"type": "text",
"variants": []
},
{
"id": 5868,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11286,
"title": "Желтый"
}
]
},
{
"id": 5869,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11287,
"title": "Новое имя варианта"
},
{
"id": 11288,
"title": "Синий"
},
{
"id": 11289,
"title": "Красный"
}
]
},
{
"id": 5870,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11290,
"title": "Новое имя варианта"
},
{
"id": 11291,
"title": "Синий"
},
{
"id": 11292,
"title": "Красный"
}
]
},
{
"id": 5871,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11293,
"title": "Новое имя варианта"
},
{
"id": 11294,
"title": "Синий"
},
{
"id": 11295,
"title": "Красный"
}
]
},
{
"id": 5872,
"title": "Цвет",
"type": "text",
"variants": []
},
{
"id": 5873,
"title": "Color (change.)",
"type": "text",
"variants": [
{
...