Documentation

sale.propertyvalue.modify

sale.propertyvalue.modify(fields.order.id, fields.order.propertyValues[])

The method modifies property value.

When successful, returns property value resource in response body.

Parameters

ParameterType Description
fields.order.idint Order number.
fields.order.propertyValues[]list Fields, corresponding to available list of fields.


Examples

BX24.callMethod(
    'sale.propertyvalue.modify', 
    {
		fields: {
			order: {
				id: 33,
				propertyValues: [
				{
					orderPropsId: 2,
					value: 'bx@bx.bx2'
				},
				{
					orderPropsId: 1,
					value: 'Test'
				},
				{
					orderPropsId: 3,
					value: '77777777777'
				},
				{
					orderPropsId: 4,
					value: '101000'
				},
				{
					orderPropsId: 6,
					value: '0000073738'
				},
				{
					orderPropsId: 7,
					value: 'test'
				},
				{
					orderPropsId: 20,
					value: [
					'code1',
					'code2'
					]
				},
				{
					orderPropsId: 21,
					value: 'code1'
				}
			],
		},
	  }		
	}
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2022
Up