> 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="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2F4jnb1FvOKRFG7cFW118g%2Fimage.png?alt=media&amp;token=d6835307-1669-4f08-b83d-49ab99dbd216" 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:

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-M_bY6-qLUVWd67QoUgu%2F-M_bkbmwJ6tm5luaXS4P%2Fimage.png?alt=media\&token=ad08d1ff-cb69-4cf8-b9cc-205c40403cc5)

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.
