Documentation

crm.timeline.bindings.bind

crm.timeline.bindings.bind()

The method binds a timeline record to CRM element.

Parameters

Parameter Description
fields Set of fields - array ("field"=>"value"[, ...]) type, containing field values. Required fields - OWNER_ID, ENTITY_ID and ENTITY_TYPE.

Fields

Field DescriptionTypeNote
OWNER_ID Record ID in timeline. integer Invariable\Required
ENTITY_ID Element ID, to which a timeline record is binded. integer Invariable\Required
ENTITY_TYPE Type of element with binded comment.
Values:
  • lead - lead;
  • deal - deal;
  • contact - contact;
  • company - company;
  • order - order.
string Invariable\Required

Example:

   BX24.callMethod(
       "crm.timeline.bindings.bind",
       {
           fields:
           {
               "ENTITY_ID": 10,
               "ENTITY_TYPE": "deal",
               "OWNER_ID": 1110
           }
       },
       function(result)
       {
           if(result.error())
               console.error(result.error());
           else
               console.info(result.data());
       }
   );


© «Bitrix24», 2001-2024