Get Values of Section Settings for catalog.productPropertySection.get

We are still updating this page

Some data may be missing — we will complete it shortly.

Scope: catalog

Who can execute the method: any user

Description

catalog.productPropertySection.get(propertyId)
        

Method to access the value of section settings for product properties or variations.

Parameters

Parameter

Description

propertyId
integer

Identifier of the product property or variation.

Required parameters are marked with *

Examples

try
        {
        	const response = await $b24.callMethod(
        		'catalog.productPropertySection.get',
        		{
        			propertyId: 128
        		}
        	);
        	
        	const result = response.getData().result;
        	console.log(result);
        }
        catch( error )
        {
        	console.error(error.ex);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'catalog.productPropertySection.get',
                    [
                        'propertyId' => 128
                    ]
                );
        
            $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 section: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'catalog.productPropertySection.get',
            {
                propertyId: 128
            },
            function(result)
            {
                if(result.error())
                    console.error(result.error().ex);
                else
                    console.log(result.data());
            }
        );
        

How to Use Examples in Documentation