Documentation

sale.property.update

sale.property.update(fields)

The method updates order property fields.

When successful, returns order property resource in response body.

Parameters

ParameterType Description
fieldsnested object Fields, corresponding to available list of getFieldsByType.


Examples

BX24.callMethod(
    'sale.property.update', 
    {
	  id: 34,
	  fields: {
		personTypeid: '1',
		propsGroupId: '8',
		name: 'Position',
		code: 'Position',
		active: 'Y',
		util: 'Y',
		userProps: 'Y',
		isFiltered: 'Y',
		sort: '100',
		description: '',
		type: 'ENUM',
		required: 'N',
		multiple: 'N',
		defaultValue: [
			'code1',
			'code2'
		],
		settings[
			multiline: 'Y',
			maxlength: 100
		]
	  }  
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2022
Up