What this solution does
The 'My Company' custom field is a field type for on-premise Bitrix24 and 1C-Bitrix systems with the CRM module. It restricts selection in CRM cards and forms to legal entities marked as 'My Companies' (CRM section → Settings → My Companies), excluding the entire client database from the list.
This tool is designed for companies and corporate groups that have multiple own legal entities (holding companies, trading houses, groups with individual sole proprietorships and limited liability companies) in the system, which they use in deals, leads, documents, and other CRM entities. It is essential for administrators and implementers configuring CRM to prevent confusion between the organization and its clients. For managers, accountants, and lawyers, the field allows filling out details such as 'Our Legal Entity', 'Seller Organization', or 'Contract Executor' by selection from a short list rather than manual entry.
The primary problem solved is the distinction between 'clients' and 'own organizations'. In the standard 'Company' field, thousands of clients appear in a single list, increasing the risk of selecting a client instead of the correct legal entity. This field provides access exclusively to the 'My Companies' list.
The custom field 'My Company' from the developer 'Krupnoe Delo' addresses issues with manual entry and typos. When organization names are typed manually into a text field, they may vary (for example, 'ooo romashka', 'romashka ooo', 'romashka'), whereas this field stores the CRM company ID, ensuring data uniformity.
The list of values does not become outdated. Unlike manual lists that require updating when legal entities are opened or closed, data here is always taken from the 'moi kompanii' section and updated automatically.
The link to the organization card is preserved. The value is displayed as a name with a link to the company card, where details, contracts, and history are accessible.
Value substitution is prevented. The server verifies that the 'moya' company is recorded in the field; a regular or non-existent company cannot be saved, even if data is substituted in the request.
Data access is restricted. The user sees in the list only those companies they are permitted to read according to CRM rights; names of inaccessible companies are not disclosed.
Typical usage scenarios
In a deal or lead — the 'Organization-Seller' field: the manager selects their legal entity on behalf of which the deal is concluded.
In a contract, invoice, or request — 'Ispolnitel' or 'Platelshchik' from among own organizations.
The 'My Company' field is used in smart processes, including procurement, approvals, and requests, to select the initiating legal entity from a list of available organizations. Multiple selection is supported to specify several companies simultaneously. In company and contact cards, the 'Servicing Legal Entity' field identifies the organization working with the client. During integration and data export, the value is stored as the CRM company ID, simplifying mapping with accounting system data.
The interface is implemented as a dropdown list with search by organization name. Search also functions by the initial part of the INN when numeric data is entered. Pagination is implemented via scrolling or a 'Show More' button. Keyboard navigation is supported, and the interface complies with ARIA accessibility standards.
Both single and multiple selection are supported. When multiple items are selected, values are displayed as chips that can be removed using the '×' button or the Backspace key. In view mode, the company name is displayed with a link to its card. Server-side validation is performed upon saving to protect against value tampering. The system respects CRM access rights: the name of a company without access is not disclosed.
The mechanism is resilient to changes: if a company is deleted or no longer belongs to the 'my' category, the record 'Company #ID (unavailable)' is shown. The saved value is preserved and does not cause errors. The company name is included in the entity search index.
The module adds a custom field named "My Company" in the administrative section: Settings → Product Settings → Custom Fields. The field settings page includes tooltips, pagination size configuration, and an "Access" tab for access rights management. Technical errors are logged to the event log. Russian and English localizations are supported.
Requirements include 1C-Bitrix (main) version 20.0.0 or higher, the installed CRM module, and PHP 7.4 or higher (tested on PHP 8.3). The module creates no custom tables and executes no SQL queries. All data is read via the CRM public API and the core ORM. The column data type for field values is determined by the core for the current database system. Compatibility is provided for MySQL and PostgreSQL (for PostgreSQL, platform version main 23.900.900 or higher supporting this database system is required).
The field stores the company ID (integer). When passing values in integrations, use the ID. The page size can be configured from 5 to 50 records, and the maximum search query length is 100 characters. Tax ID search works only if the company has filled-in details available in your CRM edition.
Module settings are located in the modules list section (Settings → Product Settings → Module Settings) rather than in the administrative menu. The public part of the site remains unaffected, and site templates or showcase components are not included in the delivery package. The module operates independently without external services, does not transmit user data or license keys to third-party servers, and requires no payment for external systems. No partner modules or in-app purchases are required. Installation and configuration can be performed by a portal administrator without programming skills. When the module is removed, custom fields and their values are preserved; deletion of these fields occurs only upon explicit confirmation by the administrator.
For “User field "My Company"”, General iT can perform integration, configuration and a final check after installation.