Data Sync Jobs API: Sample Use Case & Flow

This article presents a possible use case and corresponding sample flow that you can support. This can be a helpful starting point as you plan your implementation.

Automate recurring data transfers and monitor execution results

You can automatically synchronize customer data from an external CRM system to a Wix site's database every night at 2 AM. This ensures that every morning the site has the latest customer information without manual intervention.

To automate recurring data transfers:

Call Create Data Sync Job with a cron expression 0 2 * * * to schedule daily execution after 2:00 AM UTC. Specify the external CRM data source as source and the target Wix database collection as destination. Set enabled to true to activate the scheduled job.

The system automatically runs the job daily, creating a new data movement job for each execution.

To monitor execution results:

  1. Call Get Data Sync Job and retrieve the lastJobId.
  2. Use that ID to call Get Job and check the status.
Did this help?