Get the fields of product property features or variations catalog.productPropertyFeature.getFields

We are still updating this page

Some data may be missing here — we will fill it in shortly.

Scope: catalog

Who can execute the method: any user

Description

catalog.productPropertyFeature.getFields()
        

The method returns the fields of product property features or variations.

Parameters

No parameters.

Examples

try
        {
        	const response = await $b24.callMethod(
        		'catalog.productPropertyFeature.getFields',
        		{}
        	);
        	
        	const result = response.getData().result;
        	console.log(result);
        }
        catch( error )
        {
        	console.error('Error:', error.ex);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'catalog.productPropertyFeature.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 feature fields: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'catalog.productPropertyFeature.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

featureId*
string

Parameter code.

id
integer

Identifier of the property feature.

Read-only.

isEnabled*
char

Whether the parameter is enabled.

moduleId*
string

Module identifier.

propertyId*
integer

Identifier of the property.