Documentation

crm.status.add

crm.status.add(fields)

Create new element in the specified directory.

Parameters

ParameterDescription
fieldsSet of fields is an array of the array("field"=>"value"[, ...]) type, containing directory field values. (Required)

Example

 BX24.callMethod(
  "crm.status.add", 
  {
   fields:
   { 
    "ENTITY_ID": "DEAL_STAGE",  
    "STATUS_ID": "DECISION",
    "NAME": "Decision making",
    "SORT": 70
   }
  }, 
  function(result) 
  {
   if(result.error())
    console.error(result.error());
   else
    console.info("Directory element with ID " + result.data() +"created");
  }
 ); 


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019