Binding Deals with CRM Entities: Overview of Methods
The group of methods crm.activity.binding.* works with the relationships of an existing deal to CRM entities: it adds a binding, returns a list, moves a binding to another entity, or deletes it.
For example, you may need to move a client's e-mail from the lead's timeline to the company's detail form. To do this, you add a binding with the company—the deal will then appear in its timeline. After that, you can remove the binding with the lead.
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect the MCP server so that the assistant can utilize the official REST documentation.
Quick navigation: all methods
User documentation: Timeline in CRM item form
Getting Started
- Obtain the
activityIdof the deal. - Determine the
entityTypeIdandentityIdof the CRM entity. - Add the binding of the deal to the CRM entity using the crm.activity.binding.add method.
- To check the current bindings of the deal, use the crm.activity.binding.list method.
- If you need to move the binding to another entity of the same type, use the crm.activity.binding.move method.
- Delete the required binding using the crm.activity.binding.delete method.
Operational Features
Multiple detail forms. One deal can be linked to multiple CRM entities, but no more than 100—it will be displayed in the timeline of each linked detail form.
Moving a binding. The crm.activity.binding.move method changes the binding only between entities of the same type: from one deal to another, but not from a deal to a contact.
Deleting a binding. You cannot delete a binding if it is the only one for the deal.
Binding with Other Objects
CRM Deals. All methods in this section accept the deal identifier activityId. Obtain activityId from the response of the crm.activity.add method or retrieve it from the list using the crm.activity.list method.
CRM Entities. To bind a deal to a CRM entity, pass entityTypeId and entityId. The typical values of entityTypeId for leads, deals, contacts, and companies are returned by the crm.enum.ownertype method. For Smart Processes, entityTypeId is obtained when creating the type using the crm.type.add method or from the list using the crm.type.list method. The identifier of the required entity entityId can be obtained using the universal crm.item.list method.
Universal Deals. A universal deal is an advanced type of deal that includes synchronization with a calendar, selection of a meeting place, and negotiation room. A universal deal is created using the crm.activity.todo.add method. This method returns the identifier of the created deal, which is passed to the crm.activity.binding.* methods as activityId.
Typical use-cases and scenarios
Overview of Methods
Scope:
crmWho can perform the method: depends on the method
|
Method |
Description |
|
Adds a binding of the deal to a CRM entity |
|
|
Moves the binding of the deal to another CRM entity of the same type |
|
|
Returns a list of the deal's bindings |
|
|
Deletes the binding of the deal from the CRM entity |