🚚 Miễn phí giao hàng toàn quốc

✅ Tặng Gói Hỗ trợ online trọn đời

✅ Giá cạnh tranh nhất thị trường

✅ Miễn phí tư vấn giải pháp

🚚 Miễn phí giao hàng toàn quốc

✅ Tặng Gói Hỗ trợ online trọn đời

✅ Giá cạnh tranh nhất thị trường

✅ Miễn phí tư vấn giải pháp

Hotline: 0943.199.449

Địa chỉ: Tầng 1, tòa nhà Deli, 75 Hoàng Văn Thụ, P. Cầu Kiệu

Bitrix24 Helpdesk

BI Builder datasets: Companies and contacts

A dataset contains information about leads, deals, companies, and other Bitrix24 items. Each item has several datasets that automatically receive data from system and custom fields. Use datasets to create charts and analyze business efficiency metrics.

In this article, you'll learn about datasets for companies and contacts, how to merge them, and how to create charts.

Datasets:

Examples:


Choose a dataset

To analyze information in a dashboard, choose a suitable dataset and create a chart.

crm_company — companies. This dataset contains data from company system fields, including names, types, industries, responsible persons, addresses, and contact information. Use this dataset to analyze client companies.

crm_company

Field Description Data type
ID Company ID Number
DATE_CREATE Date and time the company was created Date and time
DATE_MODIFY Date and time the company was last modified Date and time
CREATED_BY_ID ID of the employee who created the company Number
CREATED_BY_NAME Name of the employee who created the company String
CREATED_BY ID and name of the employee who created the company String
MODIFY_BY_ID ID of the employee who last modified the company Number
MODIFIED_BY_NAME Name of the employee who last modified the company String
MODIFIED_BY ID and name of the employee who last modified the company String
ASSIGNED_BY_ID ID of the employee responsible for the company Number
ASSIGNED_BY_NAME Name of the employee responsible for the company String
ASSIGNED_BY ID and name of the employee responsible for the company String
OPENED Shows whether the company is available to everyone: Y — yes, N — no String
TITLE Company name String
ADDRESS_1 Address 1 String
ADDRESS_2 Address 2 String
ADDRESS_CITY City String
ADDRESS_POSTAL_CODE Postal code String
ADDRESS_REGION Region String
ADDRESS_PROVINCE Province or state String
ADDRESS_COUNTRY Country String
ADDRESS_COUNTRY_CODE Country code String
BANKING_DETAILS Banking details String
COMMENTS Comment String
COMPANY_TYPE_ID Company type code String
COMPANY_TYPE_NAME Company type name String
COMPANY_TYPE Company type code and name String
INDUSTRY_ID Company industry code String
INDUSTRY_NAME Company industry name String
INDUSTRY Company industry code and name String
REVENUE Company annual revenue Number
CURRENCY_ID Annual revenue currency code String
EMPLOYEES Number of employees at the company String
LEAD_ID ID of the lead linked to the company Number
ORIGINATOR_ID ID of the external system the company came from String
ORIGIN_ID Company ID in the external system String
ORIGIN_VERSION Data version in the external system String
IS_MY_COMPANY Shows whether this is your company: Y — yes, N — no String
CATEGORY_ID Company category ID Number
CATEGORY_NAME Company category name String
CATEGORY Company category ID and name String
UTM_SOURCE Value of the utm_source parameter — traffic source String
UTM_MEDIUM Value of the utm_medium parameter — traffic type String
UTM_CAMPAIGN Value of the utm_campaign parameter — advertising campaign String
UTM_CONTENT Value of the utm_content parameter — ad content String
UTM_TERM Value of the utm_term parameter — keyword String
PHONE Company phone numbers String
WEB Company websites String
EMAIL Company email addresses String
IM Messenger contact information String

crm_company_uf — company custom fields. This dataset contains data from custom fields you create, such as client categories and additional contact information. Use this dataset to add your own company parameters to reports.

crm_company_uf

Field Description Data type
COMPANY_ID Company ID Number
DATE_CREATE Date and time the company was created Date and time
UF_CRM_"field number" Data from the custom field with the specified number, for example UF_CRM_123456789 Depends on the field type

crm_contact — contacts. This dataset contains data from contact system fields, including names, companies, sources, responsible persons, addresses, and contact information. Use this dataset to analyze contacts and their linked companies.

crm_contact

Field Description Data type
ID Contact ID Number
DATE_CREATE Date and time the contact was created Date and time
DATE_MODIFY Date and time the contact was last modified Date and time
CREATED_BY_ID ID of the employee who created the contact Number
CREATED_BY_NAME Name of the employee who created the contact String
CREATED_BY ID and name of the employee who created the contact String
MODIFY_BY_ID ID of the employee who last modified the contact Number
MODIFIED_BY_NAME Name of the employee who last modified the contact String
MODIFIED_BY ID and name of the employee who last modified the contact String
ASSIGNED_BY_ID ID of the employee responsible for the contact Number
ASSIGNED_BY_NAME Name of the employee responsible for the contact String
ASSIGNED_BY ID and name of the employee responsible for the contact String
OPENED Shows whether the contact is available to everyone: Y — yes, N — no String
COMPANY_ID ID of the contact's primary company Number
SOURCE_ID Contact source code String
SOURCE_DESCRIPTION Contact source description String
NAME Contact's first name String
LAST_NAME Contact's last name String
SECOND_NAME Contact's middle name String
POST Contact's job title String
ADDRESS_1 Address 1 String
ADDRESS_2 Address 2 String
ADDRESS_CITY City String
ADDRESS_POSTAL_CODE Postal code String
ADDRESS_REGION Region String
ADDRESS_PROVINCE Province or state String
ADDRESS_COUNTRY Country String
ADDRESS_COUNTRY_CODE Country code String
COMMENTS Comment String
LEAD_ID ID of the lead linked to the contact Number
EXPORT Shows whether the contact is included in export: Y — yes, N — no String
TYPE_ID Contact type code String
TYPE_NAME Contact type name String
ORIGINATOR_ID ID of the external system the contact came from String
ORIGIN_ID Contact ID in the external system String
ORIGIN_VERSION Data version in the external system String
BIRTHDATE Contact's date of birth Date and time
HONORIFIC Honorific code, for example HNR_RU_1 String
CATEGORY_ID Contact category ID Number
CATEGORY_NAME Contact category name String
CATEGORY Contact category ID and name String
PHONE Contact phone numbers String
WEB Contact websites String
EMAIL Contact email addresses String
IM Messenger contact information String
UTM_SOURCE Value of the utm_source parameter — traffic source String
UTM_MEDIUM Value of the utm_medium parameter — traffic type String
UTM_CAMPAIGN Value of the utm_campaign parameter — advertising campaign String
UTM_CONTENT Value of the utm_content parameter — ad content String
UTM_TERM Value of the utm_term parameter — keyword String
COMPANIES IDs of companies linked to the contact String

crm_contact_uf — contact custom fields. This dataset contains data from custom fields you create, such as the date of the last call and client status. Use this dataset to add your own contact parameters to reports.

crm_contact_uf

Field Description Data type
CONTACT_ID Contact ID Number
DATE_CREATE Date and time the contact was created Date and time
UF_CRM_"field number" Data from the custom field with the specified number, for example UF_CRM_123456789 Depends on the field type

Create a chart

Add information from a dataset to charts and track business metrics. Charts show which companies employees work with and who they communicate with.

  1. Open BI Builder > Charts.
  2. Click + Chart in the top-right corner.
  3. Choose a dataset from the list. If you do not see the dataset you need, click Add a dataset.
    Create a dataset
  4. Choose a chart type — the format for viewing the information, such as a card, table, line chart, or another option.
  5. Click Create new chart.

Merge datasets

Merge datasets to include information from company system and custom fields in a report.

  1. Open BI Builder > SQL > SQL Lab.
  2. Make sure bitrix24 is selected in the Schema field.
  3. Enter the SQL query and click Run.
  4. Review the query results. To create a chart for a report, save the query as a dataset. The dataset receives data from the fields specified in the SQL query.
    Create a chart from a virtual dataset

If this is your first time merging datasets, see the sample query.

Example SQL query

This SQL query extracts data from two datasets: companies (crm_company) and company custom fields (crm_company_uf). You can copy it to see how the query works. Before running the query, replace UF_CRM_"field number" with your custom field.

SELECT
    crm_company.TITLE AS "Company name",
    crm_company.ASSIGNED_BY_NAME AS "Responsible person",
    crm_company_uf.UF_CRM_1729502512378 AS "Custom field",
    crm_company.PHONE AS "Company phone",
    crm_company.EMAIL AS "Company email",
    crm_company.WEB AS "Company site"
FROM
    crm_company
INNER JOIN
    crm_company_uf ON crm_company.ID = crm_company_uf.COMPANY_ID
WHERE
    crm_company_uf.UF_CRM_1729502512378 IS NOT NULL
    AND crm_company_uf.UF_CRM_1729502512378 <> ''

SELECT determines which information to extract from the dataset. For example, the query SELECT crm_company.TITLE AS "Company name":

  • Selects the company name TITLE from the crm_company dataset
  • Assigns it the name Company name
  • Displays the result in a separate table column

FROM specifies the main dataset that the data comes from. The query gets data from crm_company, a table with information about CRM companies.

INNER JOIN links datasets and combines their information. The query crm_company_uf ON crm_company.ID = crm_company_uf.COMPANY_ID links system and custom field information by company ID.

WHERE filters the results and shows only companies with a non-empty custom field.


In brief

  • A dataset contains information about leads, deals, companies, and other Bitrix24 items.
  • Each item has several datasets that automatically receive data from system and custom fields.
  • Companies and contacts have four datasets: companies (crm_company), company custom fields (crm_company_uf), contacts (crm_contact), and contact custom fields (crm_contact_uf).
  • Use datasets to create charts and analyze business efficiency metrics. Charts show which companies employees work with and who they communicate with.
  • Merge datasets to include information from company or contact system and custom fields in a report. Write an SQL query, save the result as a dataset, and create a chart.
Was this information helpful?
Thank you for your feedback.
Get Implementation Help from a Partner
That's not what I'm looking for
Complicated and incomprehensible text
The information is outdated
It's too short. I need more information
I don't like the way this tool works
Get your Bitrix24 set up by local professionals
FIND BITRIX24 PARTNER NEAR ME
implementation_helper_man
Go to Bitrix24
Don't have an account? Create for free
Related articles
BI Builder datasets: Deals BI Builder datasets: Invoices and estimates BI Builder: Get and use data from ad accounts Configure data formats and types for CSV file import BI Builder: Fix CSV file import errors BI Builder datasets: Products BI Builder datasets: Smart Process Automation BI Builder datasets: Workflows BI Builder: Create a dataset from a CSV file BI Builder datasets: Activities, stages, and links between CRM items
Zalo
0943.199.449