Get Fields of List Property Values catalog.productPropertyEnum.getFields
We are still updating this page
Some data may be missing here — we will fill it in shortly.
Scope:
catalogWho can execute the method: any user
Description
catalog.productPropertyEnum.getFields()
The method returns the fields of list property values.
Parameters
No parameters.
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'catalog.productPropertyEnum.getFields',
{}
);
const result = response.getData().result;
if(result.error())
{
console.error(result.error().ex);
}
else
{
console.log(result);
}
}
catch(error)
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'catalog.productPropertyEnum.getFields',
[]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error()->ex);
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error getting product property enum fields: ' . $e->getMessage();
}
BX24.callMethod(
'catalog.productPropertyEnum.getFields',
{},
function(result)
{
if(result.error())
console.error(result.error().ex);
else
console.log(result.data());
}
);
How to Use Examples in Documentation
Returned Fields
|
Field |
Description |
Note |
|
def |
Is it the default value. |
|
|
id |
Identifier of the value. |
Read-only. |
|
propertyId* |
Identifier of the property. |
|
|
sort |
Sorting. |
|
|
value* |
Value. |
|
|
xmlId* |
External identifier. |
Copied