Setting up 1C:Document Management and Bitrix24 exchange

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1175
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    811
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    564
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    747
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    655
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    976

Setting Up Exchange Between 1C:Document Management and Bitrix24

The link between 1C:Document Management (1C:DM) and Bitrix24 closes the gap between the accounting environment and the team's workspace. Documents are stored in 1C:DM with legal force and versioning, while employees work with tasks and approvals within Bitrix24 — without switching between systems.

We set up bidirectional exchange so that changes in either system are correctly reflected in the other, conflicts are handled automatically, and approval routes are not duplicated.

What Synchronizes

The exchange is built in three directions:

  • Documents → Bitrix24.Disk. Files from 1C:DM are published to specified folders on Disk. When the version is updated in 1C:DM, the file on Disk is overwritten. Reverse upload — by trigger or schedule.
  • Orders ↔ Tasks. A task in 1C:DM creates a task in Bitrix24 with binding to the responsible person. Closing a task in B24 changes the order status in 1C:DM.
  • Approvals via business processes. The document approval route in 1C:DM is translated to a BP in Bitrix24 — participants receive notifications and vote within the portal.

Technical Stack of Integration

The exchange is realized through the REST API of Bitrix24 and HTTP services of 1C:DM. Interaction scheme:

Component Role
REST API Bitrix24 Task creation, file upload to Disk, BP launch
Webhooks (incoming) Receiving events from 1C:DM — new document, status change
Webhooks (outgoing) Notification of 1C:DM about approval completion in B24
HTTP service 1C:DM Endpoint for receiving commands from Bitrix24
Message queue Buffering during peak loads (optional — RabbitMQ)

Authorization is via OAuth 2.0 for server applications or an incoming webhook with token. For production use, we use a server application: the token is automatically updated, there's no binding to a specific user.

Field Mapping

Directories in 1C:DM and Bitrix24 do not match. We set up a correspondence table:

  • Counterparties 1C:DM → CRM Companies. Matching by INN or external code.
  • Document types → Disk Folders. Each document type from 1C:DM is bound to a specific folder.
  • Executors → Bitrix24 Users. Mapping by email or employee ID in a custom field.
  • Approval statuses. "Approved" / "Rejected" / "On revision" in 1C:DM correspond to voting results in Bitrix24 BP.

Document Approval Routes

This is the key element of the integration. The route in 1C:DM contains stages: initiation, sequential or parallel approval, signing. In Bitrix24, this route is reproduced through a business process template:

  1. Initiation. A webhook from 1C:DM starts a BP in Bitrix24 with transmission of the document ID, list of approvers, and deadline.
  2. Parallel stage. The BP creates tasks for all stage participants simultaneously. The result is recorded in BP variables.
  3. Sequential stage. A task for the next participant is created only after the previous one is completed.
  4. Result return. Upon BP completion, an outgoing webhook sends the final status and approvers' comments to 1C:DM.

If the route in 1C:DM changes (a stage is added, an approver is replaced), the BP template is updated manually or through a script for template recreation. Full auto-generation of BP templates from 1C:DM is possible but requires separate development of a handler.

Conflict Resolution

In bidirectional exchange, collisions are inevitable. Resolution rules:

  • Documents. Priority is with 1C:DM — it's the accounting system. If a file is changed in both systems, the version from 1C:DM overwrites the version on Disk, the conflicting copy is saved with the suffix _conflict_YYYYMMDD.
  • Tasks/orders. Priority is with the system where the last change occurred (by timestamp). If the discrepancy is less than 60 seconds — manual resolution through admin notification.
  • Approvals. Conflict is not constructively possible: the voting result is formed in one system and transmitted to the other.

Schedule and Monitoring

Document synchronization works on a schedule (cron task on the 1C side, agent on the B24 side) with an interval from 5 minutes. Tasks and approvals are in real time via webhooks.

For monitoring, we set up:

  • Exchange log in 1C:DM (register of information with sending history)
  • Journal of incoming webhooks in Bitrix24
  • Admin notification in case of HTTP errors (statuses 4xx/5xx) or timeout

What You Get in the End

Employees approve documents in the familiar Bitrix24 interface without going into 1C:DM. Accounting and legal teams continue working in 1C:Document Management. Both systems contain up-to-date data with a delay of no more than 5–10 minutes for documents and instant synchronization for tasks and approvals.