bx24_crm_duplicates
Find duplicate leads, contacts, or companies in Bitrix24 CRM by email, phone, or matching fields, then merge them into a single record via ID or batch operations.
Instructions
Bitrix24 CRM duplicate search & merge. Methods crm.duplicate.*, crm.entity.mergeBatch (REST 1.0 + 3.0). RU/EN: дубли, найти дубли, объединить / duplicates, find duplicates, merge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Communication type for findbycomm | |
| order | No | Order object (e.g. { 'ID': 'DESC' }) | |
| start | No | Pagination offset (number of records to skip) | |
| action | Yes | Operation to perform: - "findbycomm": Find duplicates by communication (email/phone) - "findbyfields": Find duplicates by matching fields - "merge": Merge entities by ID (mainId absorbs otherIds) — destructive - "mergeBatch": Batch-merge duplicates — destructive, irreversible - "volatileType_fields": Describe volatile duplicate type fields - "volatileType_list": List volatile duplicate types - "volatileType_register": Register a volatile duplicate type - "volatileType_unregister": Unregister a volatile duplicate type (destructive) - "status_list": List CRM status/dictionary elements (stages, sources, ...) - "status_get": Get a status element by ID - "status_add": Create a status element - "status_update": Update a status element - "status_delete": Delete a status element (destructive) - "status_fields": Describe status fields - "status_entity_items": Get status items by entity ID - "status_entity_types": List status entity types | |
| entity | No | Entity type for findbyfields/merge | |
| fields | No | Fields to match for findbyfields (e.g. NAME, LAST_NAME, EMAIL) | |
| filter | No | Filter object (e.g. { '>OPPORTUNITY': 10000, 'STAGE_ID': 'WON' }) | |
| mainId | No | Entity ID | |
| select | No | Array of field names to return (projection) | |
| values | No | Communication values (emails or phones) | |
| confirm | No | Set to true to confirm destructive actions when BX24_CONFIRM_DESTRUCTIVE is enabled. | |
| otherIds | No | IDs to merge into mainId | |
| statusId | No | CRM status ID (crm.status.* / dictionaries) | |
| statusFields | No | Status element fields: NAME, STATUS_ID, SORT, COLOR | |
| statusEntityId | No | Status entity ID (e.g. STATUS, SOURCE) |