Get the values of the product property feature parameter or variations catalog.productPropertyFeature.get

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.get(id)
        

Method to access the value of the product property feature or variations by ID.

Parameters

Parameter

Description

id
integer

Identifier of the product property feature or variations

Required parameters are marked with *

Examples

try
        {
        	const response = await $b24.callMethod(
        		'catalog.productPropertyFeature.get',
        		{
        			id: 144
        		}
        	);
        	
        	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.productPropertyFeature.get',
                    [
                        'id' => 144
                    ]
                );
        
            $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: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'catalog.productPropertyFeature.get',
            {
                id: 144
            },
            function(result)
            {
                if(result.error())
                    console.error(result.error().ex);
                else
                    console.log(result.data());
            }
        );
        

How to Use Examples in Documentation