Custom Field Settings: Overview of Methods
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The methods in this section allow you to manage custom fields: access available field types, create a field for the desired object, read its settings, update parameters, and delete the field.
Technically, the handler for these methods resides in the main module, but in REST, they are available as a separate group userfieldconfig.* and use the scope userfieldconfig. In AJAX, the same handler is called as main.userfieldconfig.*.
In all userfieldconfig.* methods, moduleId is passed, which determines the module context and access permissions for the fields. Therefore, the application requires not only the userfieldconfig scope but also the module scope from moduleId. For example, to modify fields in the Business Automation module, both userfieldconfig and rpa scopes are needed.
Quick Navigation: All Methods
User Documentation: Custom Fields in CRM
Getting Started
- Determine the
moduleIdand the format ofentityIdfor the desired object. - Access available field types through userfieldconfig.getTypes.
- Create a field using the userfieldconfig.add method.
- Retrieve the list of custom field settings through userfieldconfig.list or the settings of a specific field through userfieldconfig.get.
- If necessary, modify or delete the field using the userfieldconfig.update and userfieldconfig.delete methods.
Relationships with Other Objects
CRM. The relationship of fields with CRM objects is defined by the pair moduleId=crm and the entityId of the specific CRM object. For smart processes, obtain the ID using the crm.type.list method, then pass the entityId. For other objects, such as leads, contacts, and companies, use fixed identifiers.
RPA. When working with Business Automation processes, use moduleId=rpa. Pass the process identifier in entityId.
The userfieldconfig.* methods also work in other modules if the module supports custom fields. For example, for inventory management, use moduleId=catalog and the format entityId for warehouse documents. For details, see the section Custom Fields for Inventory Documents.
Identifiers for entityId
The association of a field with an object is defined by the value of entityId.
CRM with Fixed Identifiers
CRM_LEAD— leadCRM_CONTACT— contactCRM_COMPANY— companyCRM_DEAL— dealCRM_QUOTE— estimateCRM_INVOICE— invoiceCRM_SMART_INVOICE— new invoiceCRM_REQUISITE— requisiteCRM_SMART_DOCUMENT— CRM documentCRM_SMART_B2E_DOC— B2E document
CRM Smart Processes
For a smart process, the format CRM_{ID} is used, where ID is the identifier of the smart process.
Typical use-cases and scenarios
RPA
In the rpa module, the format RPA_{ID} is used, where ID is the process identifier.
Overview of Methods
Scope:
userfieldconfig, module scope frommoduleId(e.g.,crm)Who can execute the method: depending on the method
|
Method |
Description |
|
Creates a custom field |
|
|
Updates the settings of a custom field |
|
|
Retrieves the settings of a custom field by identifier |
|
|
Retrieves a list of custom field settings |
|
|
Deletes a custom field |
|
|
Retrieves available types of custom fields for the module |