# Saved queries

Useful and most used search queries can be saved to make them easily reusable at any time. Saved queries can also be shared with other users.

To save a query go to **Setup** → **Saved Queries**  (or go to **Setup** → **Data Watcher section** → **Saved Queries** when Data Watcher is in a bundle with Data Mover) and follow these steps:

1. Click on the **NEW** button.
2. In the **New query** window, fill in these fields:
   1. **Name**: assign a name for your query. This name will appear in the **Applied query** field and in the Queries list, so we suggest you give it a name that is easy to remember. The maximum number of characters is 128, blanks are not allowed. E.g., SourceSFTPactor.
   2. **Content**: create the query string according to the Data Watcher Query Language (DWQL) instructions that you can find on the [How to run searches in Data Watcher](/data-watcher-1.21/troubleshooting/how-to-run-searches-in-data-watcher.md) page. Note that the maximum number of characters is 500. E.g. sftp\_actor\[source].
   3. **Sharing level**:
      * **PRIVATE**: the saved query is accessible only to its owner/creator.
      * **PUBLIC**: the saved query is accessible to every authenticated user.
      * **LIMITED**: the saved query is accessible to a limited group of users and/or groups, which can be selected in the drop-down lists of the **Limit access to** box.
3. Click the **SAVE** button.

The query is now saved and will appear on the **Saved Queries** home page.

Clicking the 3-dots icon on the right of the row, you can:

* **Run** the query in the Dataflow Inquiry search bar.&#x20;
* **Copy** the content of the query to your clipboard.
* Open the **Edit** **query** window to change the details of your query.
* **Delete** the query.

In the **Filters** panel on the right, you can filter results by:

* **Name**
* **Owner**
* **Sharing level**

Queries in the **Saved Queries** section of Data Watcher can be run directly by clicking the **Run** menu. Results will be listed in the **Inquiry** search bar.


---

# 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.primeur.com/data-watcher-1.21/setup/saved-queries.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.
