# Enable Changes Detection Capture (CDC)

To synchronize your data efficiently, Stacksync must detect incremental changes—that is, new and updated records—without repeatedly scanning entire tables. Stacksync’s change data capture (CDC) relies on the `Change Tracking` feature in Dynamics 365, which **you must enable for each entity** you plan to sync. The following section explains how to turn on change tracking so Stacksync can reliably capture those incremental updates.

1. In the search bar search for **Data Management**

2. On the data Management page go on the data entities page<br>

   <figure><img src="/files/bULcej6GEcnuPDKMJ4jF" alt=""><figcaption></figcaption></figure>

3. Search for the entities you need to sync (e.g., Customers, Vendors)

4. Select the entity

5. Click **Change tracking** in the top ribbon<br>

   <figure><img src="/files/yL56RFWkoZA5wPLadngp" alt=""><figcaption></figcaption></figure>

6. Select the tracking mode:
   * `Enable entire entity` if available (tracks changes when any table used by the entity (root or child tables) changes, so it captures more updates and is usually better for integrations.
   * Otherwise `Enable primary table` (tracks changes only when the main (root) table of the entity changes)<br>

     Example:\
     For a **Customer** entity, the primary table is the core customer record and child tables include addresses.

     * If you enable **primary table**, changing the customer’s name is tracked, but changing only the address is not.
     * If you enable **entire entity**, both the name change and the address change are tracked and show up in your incremental sync.

     <figure><img src="/files/nitBf2ULR0XWF6eoo0se" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Some entities cannot have change tracking turned on. In complex entities, the “Track changes” option may be disabled or fail validation during activation, which means incremental change tracking is not available. In those cases, StackSync automatically falls back to full-sync mode for that entity, periodically re-reading all records to detect inserts and updates.
{% endhint %}

If you have any questions or run into any blockers, reach out anytime at <hello@stacksync.com> and the Stacksync team will be happy to help.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/enable-changes-detection-capture-cdc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
