Contacts in CRM: Overview of Methods

A contact is a CRM object that stores data about clients—individuals. The contact card contains phone numbers, email addresses, and messenger identifiers in a special format that allows communication with the client directly through Bitrix.

Quick navigation: all methods and events

User documentation: contacts in Bitrix24

Contact Connection with Other CRM Objects

Deal, lead, SPA. Any CRM object that has the standard field Client is connected to contacts. The connection is managed through groups of methods for deals, leads, and SPAs.

Company. A single contact can be linked to multiple companies. This connection is managed using the group of methods crm.contact.company.*. When you select a company in the Client field in deals or SPAs, all associated contacts are automatically pulled into the field.

Requisites. The requisites themselves are a separate object, and methods from the group crm.requisite.* and crm.address.* are used to create or modify them. They are displayed in the Requisites field of the contact card.

Contact Card

The main workspace in a contact is the General tab of its card. It consists of two parts:

  • The left part contains fields with information. If the system fields are insufficient, you can create your own custom fields. They allow you to store information in various data formats: string, number, link, address, and others. The group of methods crm.contact.userfield.* is used to create, modify, retrieve, or delete custom contact fields.

  • The right part contains the contact's timeline. In it, you can create, edit, filter, and delete CRM activities using the group of methods crm.activity.*, and timeline records using the group of methods crm.timeline.*.

The parameters of the contact card can be managed through the group of methods crm.contact.details.configuration.*.

Widgets

You can embed an application into the contact card. Thanks to embedding, you can use the application without leaving the contact card.

There are two embedding scenarios:

Overview of Methods and Events

Scope: crm

Who can perform methods: depending on the method

Basic

Method

Description

crm.contact.add

Creates a new contact

crm.contact.update

Updates an existing contact

crm.contact.get

Returns a contact by ID

crm.contact.list

Returns a list of contacts by filter

crm.contact.delete

Deletes a contact and all associated objects

crm.contact.fields

Returns the description of contact fields, including custom fields

Event

Triggered

onCrmContactAdd

When a contact is created

onCrmContactUpdate

When a contact is updated

onCrmContactDelete

When a contact is deleted

Companies

Method

Description

crm.contact.company.add

Adds a company to the specified contact

crm.contact.company.items.get

Retrieves the set of companies associated with the specified contact

crm.contact.company.items.set

Sets the set of companies associated with the specified contact

crm.contact.company.delete

Removes a company from the specified contact

crm.contact.company.items.delete

Clears the set of companies associated with the specified contact

crm.contact.company.fields

Returns the description of fields for contact-company connection

Custom Fields

Method

Description

crm.contact.userfield.add

Creates a custom field for contacts

crm.contact.userfield.update

Modifies an existing custom field for contacts

crm.contact.userfield.get

Returns a custom field for contacts by Id

crm.contact.userfield.list

Returns a list of custom fields for contacts

crm.contact.userfield.delete

Deletes a custom field for contacts

Event

Triggered

onCrmContactUserFieldAdd

When a custom field is added

onCrmContactUserFieldUpdate

When a custom field is updated

onCrmContactUserFieldDelete

When a custom field is deleted

onCrmContactUserFieldSetEnumValues

When the set of values for a list-type custom field is changed

Managing Contact Cards

Method

Description

crm.contact.details.configuration.get

Retrieves the settings of contact cards

crm.contact.details.configuration.reset

Resets the settings of contact cards

crm.contact.details.configuration.set

Sets the settings of contact cards

crm.contact.details.configuration.forceCommonScopeForAll

Allows forcing a common contact card for all users