Get Fields for Price Type Bindings to Customer Groups catalog.priceTypeGroup.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.priceTypeGroup.getFields()
        

The method returns the fields for binding price types to customer groups.

Parameters

No parameters.

Examples

try
        {
        	const response = await $b24.callMethod(
        		'catalog.priceTypeGroup.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.priceTypeGroup.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 price type group fields: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'catalog.priceTypeGroup.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

access*
char

Type of added binding:

  • N – permission to view this price type;
  • Y – permission to purchase at this price type.
    To add both permissions, the method must be called twice, sequentially specifying both types of binding (N and Y).

catalogGroupId*
integer

ID of the price type.

groupId*
integer

ID of the group to which the price is bound.

id
integer

Identifier of the binding.

Immutable field.

Required parameters are marked with *