Autofilling details in the CRM card
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.
Scope:
crm
Autofill points for details connect an application to data search within a CRM card. The application works as an external source: it receives a search string, returns found options, and passes data from the selected option for insertion into the card.
The embedding point code is passed in the PLACEMENT parameter of the placement.bind method. If the application works only with specific countries, pass their identifiers separated by commas without spaces in the OPTIONS[countries] parameter.
Bitrix24 calls the external search when a user has entered at least three characters into the search string.
The crmShowFoundEntities and crmShowCreatedEntity commands are called via BX24.placement.call, and the onCrmEntityIsNeedToCreate event is handled via BX24.placement.bindEvent. There is no need to register them separately.
The handler will not be available in the search source selection interface until the application installation is complete. Check the application installation
How to choose an embedding point
|
Embedding point |
Code |
When to use |
|
|
To search for and substitute company or contact details |
|
|
|
To search for and substitute bank details, e.g., by BIC |
Workflow
- The user enters a string in the details autofill field
- Bitrix24 calls the application handler and passes the search string to
PLACEMENT_OPTIONS.searchQuery - The application passes the found options using the
crmShowFoundEntitiescommand - If the user selects an option, the application receives the
onCrmEntityIsNeedToCreateevent and passes the data for insertion using thecrmShowCreatedEntitycommand
Common errors
|
Error |
How to fix |
|
Handler is registered but unavailable during search |
Check that the application is installed and that the correct embedding point code is passed in |
|
Handler is unavailable for the required country |
Check the value of |
|
Found options are not displayed |
Pass the array of options to the |
|
The option is not substituted into the card after selection |
Subscribe to |
Continue Learning
- Set Up the Widget Handler placement.bind
- Get a List of Registered Placement Handlers placement.get
- Remove Registered Automation Rule Handler placement.unbind
- Call the Registered Interface Command BX24.placement.call
- Set Up an Event Handler for the Interface BX24.placement.bindEvent
- Details in CRM: Overview of Methods