Documentation

sale.propertyVariant.add

sale.propertyVariant.add(fields)

The method adds property variant.

When successful, returns property variant resource in response body.

Parameters

ParameterType Description
fieldsobject Fields, corresponding to available list of fields.


Examples

BX24.callMethod(
    'sale.propertyVariant.add', 
    {
	  fields: {
	    orderPropsId: 39,
	    name: 'Size',
	    value: 'M',
	    }
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2022
Up