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 JSON or path to .json

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": 509,
"title": "Color (change.)",
"type": "text",
"variants": [
{
"id": 1629,
"title": "Yellowf3f597d4-38bc-4a58-9506-01477ec7529d"
},
{
"id": 1630,
"title": "Blue51f47ff4-81e6-4394-9b2a-acaf901f5946"
},
{
"id": 1631,
"title": "Red00b87017-f2e8-427d-88ce-7ace6762d332"
}
]
},
{
"id": 3312,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 6504,
"title": "Новое имя варианта"
},
{
"id": 6505,
"title": "Синий"
},
{
"id": 6506,
"title": "Красный"
}
]
},
{
"id": 3315,
"title": "Color (change.)",
"type": "text",
"variants": [
{
"id": 6509,
"title": "New variant name"
},
{
"id": 6510,
"title": "Blue"
},
{
"id": 6511,
"title": "Red"
}
]
},
{
"id": 3319,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 6519,
"title": "Новое имя варианта"
},
{
"id": 6520,
"title": "Синий"
},
{
"id": 6521,
"title": "Красный"
}
]
},
{
"id": 3326,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 6529,
"title": "Новое имя варианта"
},
{
"id": 6530,
"title": "Синий"
},
{
"id": 6531,
"title": "Красный"
}
]
},
{
"id": 3327,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 6532,
"title": "Новое имя варианта"
},
{
"id": 6533,
"title": "Синий"
},
{
"id": 6534,
"title": "Красный"
}
]
},
{
"id": 3328,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 6535,
"title": "Новое имя варианта"
},
{
"id": 6536,
"title": "Синий"
},
{
"id": 6537,
"title": "Красный"
}
]
},
{
"id": 3438,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 6687,
"title": "Желтый"
}
]
},
{
"id": 4013,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
...