> For the complete documentation index, see [llms.txt](https://docs.xenioo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xenioo.com/actions-and-operations/database/query-collection-data.md).

# Query Collection Data

This action will extract one or more records from a give collection.

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

### Settings

The action uses the following settings:

| Setting    | Description                                                                          | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ---------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------- |
| Bot        | The bot that is providing collection access. The current bot is selected by default. | :no\_entry:                                          |
| Collection | The collection to be used for the action                                             | :no\_entry:                                          |

### Remarks

This action does not directly extract any data but instead create a record cursor that can extract a single record on each read using a [Move To Next Record](/actions-and-operations/database/move-to-next-record.md) action. The flow of a complete loop on multiple records may look similar to this:

![](/files/-M_bkbmwJ6tm5luaXS4P)

If no [Field Filter Operation](/actions-and-operations/database/set-field-filter-value.md) is used, this action will open a record cursor for all of the records of the selected collection.

### Trigger

This action automatically triggers all of the [Set Field Filter ](/actions-and-operations/database/set-field-filter-value.md)operations that are attached.

### Variables

This action has no variables.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| SMS              | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action requires an active [Database ](broken://pages/-LdYpe93z-UqrvvQdX7V)package.
