Setting up scheduled exchange in 1C and 1C-Bitrix

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

Configuring Scheduled Exchange Between 1C and 1C-Bitrix

Manual exchange initiation is a common cause of data discrepancies: the manager forgot to run it, ran it at the wrong time, or missed an error. Automatic scheduled exchange resolves these issues, but requires correct configuration in both systems.

Configuring the Schedule in 1C

In the Trade Management 10/11 configuration, the exchange is triggered by a scheduled job:

Administration → Scheduled and Background Jobs → Exchange with Website

Job parameters:

  • Schedule: every N minutes, hourly, daily at a specified time
  • User: the account under which the job runs (must have access to the website exchange)
  • Retry on error: enable with a 5–10 minute delay

For stock and price uploads — an aggressive schedule (every 15–30 minutes). For a full catalog export — once nightly, at 2–4 AM.

Configuring Cron on the Site Side (if 1C initiates the exchange)

If the architecture requires the site to periodically request updates from 1C (REST API), use a Bitrix agent for scheduling:

Settings → Tools → Agents → Add Agent:

\MyProject\OneC\ExchangeAgent::run();

Interval: 900 seconds (15 minutes) for prices and stocks. The agent must run via real cron (/bitrix/modules/main/tools/cron_events.php), not via page hits — otherwise the exchange will not run overnight.

Execution Monitoring

Without monitoring, a configured schedule is useless — the exchange can break silently. Minimum monitoring:

  • Log of the last exchange with a timestamp in a dedicated table
  • Alert if no successful exchange has occurred for more than X hours
  • Email/Telegram notification on errors
// Record the exchange result
\Bitrix\Main\Application::getConnection()->query(
    "INSERT INTO b_exchange_log (CREATED_AT, STATUS, DETAILS)
     VALUES (NOW(), '" . ($success ? 'OK' : 'ERROR') . "', '" . $details . "')"
);

Splitting Schedules by Data Type

Data type Recommended frequency
Stocks and prices Every 15–30 minutes
Order statuses Every 30–60 minutes
Full catalog Once nightly
New orders to 1C Every 15–30 minutes

Setup Timeline

Configuring automatic scheduled exchange with monitoring — 4–8 hours.