Update contact by ID
The Update contact by ID robot updates any contact by its identifier from any business-process context in Bitrix24 (Alaio). The fields to change are passed as JSON in camelCase (name, lastName, assignedById, companyId and others). It returns a Y/N success flag for conditional branching in the process and works through the universal CRM method crm.item.update.
The robot updates an arbitrary contact by its ID, even when the business process runs on a different CRM entity — a deal, a lead or a task. The contact ID and the set of fields are given explicitly: fields are passed as a JSON string in camelCase (for example {"name":"John","lastName":"Smith","assignedById":5,"companyId":12}). The update uses the universal crm.item.update method, so all contact fields are available, including custom ones. Typical cases: when a deal stage changes, update the linked contact; set the responsible person and company from an external system; bulk-change contact fields from a parent process. It returns a Success (Y/N) flag: Y on a successful update, N on an empty ID, empty or invalid JSON, or an API error — compare it in the condition of the next step.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Contact ID | int | yes | |
| Fields to update (camelCase JSON): {"name":"John","lastName":"Smith","assignedById":5,"companyId":12} | string | yes |
What does the robot return?
| Parameter | Type |
|---|---|
| Success (Y/N) | string |
Scenario: updating a contact from a deal process
- The deal moves to a new pipeline stage
- The robot updates the linked contact: assignedById and companyId are passed as JSON
- A Y result confirms the update for the next step