crm.dealcategory.stage.list
Scope: catalog Permissions to execute: for all
crm.dealcategory.stage.list(id)
Returns list of deal stages for category by the ID. Equivalent to calling crm.status.list method with parameter ENTITY_ID equal to the result of calling crm.dealcategory.status method.
Parameters
Parameter | Description |
---|---|
id | Category ID. When ID = 0 or
null is specified
Empty quotation marks or parameterjust not passed.
, returns "default" category statuses.
When ID > 0 for nonexistent category For example, set ID = 10, category with ID =10 does not exist in the system. , returns nothing. |
Example
var id = prompt("Enter ID"); BX24.callMethod( "crm.dealcategory.stage.list", { id: id }, function(result) { if(result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix24», 2001-2024