Documentation

crm.dealcategory.status

Scope: catalog Permissions to execute: for all

crm.dealcategory.status(id)

Returns directory type ID for staorage deal categories by the ID.


This string is of the DEAL_STAGE_[category ID] type. For example, for category with ID 1, "DEAL_STAGE_1" string will be returned.
The ID is designed to work with the family of crm.status.* methods. For example, to create a new stage for a category, the ID must be passed to the crm.status.add method as the ENTITY_ID parameter.

Parameters

Parameter Description
id Category ID.

Example

BX24.callMethod(
	"crm.dealcategory.status", 
	{ id: id }, 
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
			console.dir(result.data());
	}
);


© «Bitrix24», 2001-2024