Documentation

sale.shipmentproperty.add

sale.shipmentproperty.add(fields)

Method for adding a shipment property.

Returns shipment property resource in the response body on success.

Parameters

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


Examples

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


© «Bitrix24», 2001-2022
Up