Documentation

sale.status.add

sale.status.add(id, type)

The methods creates status.

When successful, returns status resource in response body.

Parameters

ParameterType Description
idstring Status code.
typestring Status type.


Examples

BX24.callMethod(
    'sale.status.add', 
    { 
		fields:{
			id: 'XX',
			type: 'D',
			notify: 'Y'
		}
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2024