Documentation

catalog.productProperty.add

Scope: catalog Permissions to execute: for all

catalog.productProperty.add(fields)

Method adds a product or SKU property.

Parameters

ParameterType Description
fieldsobject Fields matching to available list of fields.

Examples

BX24.callMethod(
    'catalog.productProperty.add', 
	{
        fields: {
			  name: "Dimensions",
			  active: "Y",
			  code: "SIZE1",
			  iblockId: 16,
			  propertyType: "L",
			  isRequired: "N",
			  listType: "L",
			  filtrable: "Y",
			  multiple: "N"
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });

© «Bitrix24», 2001-2024
Up