# Sync

## Overview

The Sync action allows users to sync the data that is recorded in the system so that it reaches the server and the data is secured.

## Steps

* Click on the **Sync Data** button on the home screen to initiate a manual sync process.

<div align="left"><figure><img src="https://content.gitbook.com/content/mb5VUHEnO0msarLMPz6q/blobs/EL6Y0Wc21rYi56cFYlgu/Screenshot%202024-04-23%20at%209.43.39%20AM.png" alt="" width="188"><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Note:** Before going into the field, the user needs to log into the application every day, which will initiate an automatic sync process. The "Sync Data" button on the home screen allows the user to sync data as per user convenience. At the bottom of the screen, there is a card that shows the message “Data unsynced” along with the number of records unsynced.

When the user clicks on the ‘Sync’ button, the sync action starts along with an overlay showing “Sync in Progress” over the home page. The user cannot perform any other action until the sync is complete or there is an error.
{% endhint %}

<div align="left"><figure><img src="https://content.gitbook.com/content/mb5VUHEnO0msarLMPz6q/blobs/dZkkO4qZDFIbrd5hj0ui/Screenshot%202024-04-23%20at%209.45.20%20AM.png" alt="" width="188"><figcaption></figcaption></figure></div>

* The data synced pop-up appears once the sync is complete. Click on the **Close** button to navigate to the home screen.

<div align="left"><figure><img src="https://content.gitbook.com/content/mb5VUHEnO0msarLMPz6q/blobs/JJULRktfX3weH5CzPIw4/IMG_20230513_000446.jpg" alt="" width="188"><figcaption></figcaption></figure></div>

* In case of any sync error, a pop-up stating **Sync Failed** is displayed on the screen.
* Click on the **Retry** button to retry syncing the data.&#x20;
* Click on the **Close** button to navigate back to the home screen.

<div align="left"><figure><img src="https://content.gitbook.com/content/mb5VUHEnO0msarLMPz6q/blobs/BvbNcRmWb4TJdKuVxTNS/IMG_20230513_233748.jpg" alt="" width="188"><figcaption></figcaption></figure></div>


---

# 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.digit.org/health/access/public-health-product-suite/health-campaign-management-hcm/hcm-user-manual/support-functions/sync.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.
