Documentation

sale.property.add

sale.property.add(fields)

The method adds order property.

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.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-2024