Get product description
Gets the description template for creating a product
- Parameters
- Advanced call ?
Function GetProductDescription(Val Clear = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns
Map Of KeyAndValue - Fields map
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Clear = False;
Result = OPI_VK.GetProductDescription(Clear);
- Bash
- CMD/Bat
oint vk GetProductDescription \
--empty false
oint vk GetProductDescription ^
--empty false
Result
{
"Name": "New product",
"Description": "Product description",
"Category": "20173",
"Price": 1,
"OldPrice": null,
"MainPhoto": null,
"URL": null,
"AdditionalPhotos": [],
"PropertyValues": [],
"MainInGroup": false,
"Width": "***",
"Height": null,
"Depth": null,
"Weight": null,
"SKU": null,
"AvailableBalance": 1
}