# Configure a Sync Action

Source: https://userguide.qualytics.io/flows/actions/how-tos/operation/configure-a-sync-action/

Add a Sync action to refresh a datastore's inventory of tables, views, or files automatically whenever the Flow's trigger activates.

> **Note: Permission Required**
>
> To edit and publish a Flow, you need the **Editor** team permission on every datastore it relates to. Admins are exempt. See [Flow Permissions](https://userguide.qualytics.io/flows/flow/deep-dive/permissions/) for details.

> **Warning: Initialized datastores only**
>
> Only initialized datastores appear in the **Datastore** dropdown. A source datastore becomes initialized after successful **Sync**, **Profile**, and **Scan** runs. An enrichment datastore becomes initialized after Sync and Profile.

## Field reference

The **Sync Settings** panel shows the following fields. They mirror the options of running the operation directly on the datastore.

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| **Datastore** | Yes | Option | The source datastore to sync. |
| **Prune** | No | Checkbox | Removes named collections (tables, views, or files) that no longer exist in the datastore. |
| **Recreate** | No | Checkbox | Recreates previously deleted named collections in Qualytics. |

### Include

Choose if only tables, views, or both are included in the sync. Both come checked, and at least one has to stay checked for the action to be saved.

> **Warning: Not shown for every datastore**
>
> The **Include** section depends on the selected **Datastore**. It only appears for datastores backed by a database connector ([JDBC](https://userguide.qualytics.io/source-datastore/datastore/jdbc/overview-of-a-jdbc-datastore/) and native connectors). [DFS datastores](https://userguide.qualytics.io/source-datastore/datastore/dfs/overview-of-a-dfs-datastore/) hold files instead of tables and views, so the section is not shown.

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| **Tables** | No | Checkbox | Includes the datastore's tables in the sync. Checked by default. |
| **Views** | No | Checkbox | Includes the datastore's views in the sync. Checked by default. |

> **Info: What is a view?**
>
> A view is a virtual table defined by a saved query in the source database. It does not store data of its own; its rows come from the underlying tables every time it is read.

## Steps

**Step 1**: Navigate to the Flows page by clicking **Flows**  on the left side panel.

**Step 2**: On the **Definitions** tab, click the Flow. On its canvas, click the dashed **Action** placeholder after the trigger, or the **+** handle at the bottom edge of a node.

**Step 3**: In the **List of Actions** panel, pick the **Operation** category, then click **Sync**. The **Sync Settings** panel opens on the right-hand side.

**Step 4**: Fill in the fields.

**Step 5**: Click **Save**. The node shows a **CHANGED** badge and the **You have unpublished changes** banner appears on the canvas.

**Step 6**: Click **Publish**  to make the action live.

*Last updated: October 15, 2026.*
