Documentation

sale.shipmentproperty.update

Scope: sale Permissions to execute: for all

sale.shipmentproperty.update(fields)

Method for updating shipment property fields.

Returns shipment property resource in response body on success.

Parameters

ParameterType Description
fieldsnested object Fields, from the available list of getFieldsByType.


Example

BX24.callMethod(
    'sale.shipmentproperty.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-2024