# Query Collection Data

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

<figure><img src="https://content.gitbook.com/content/tZEstFBYh3uMutlup6ku/blobs/w1c4Bal4ar7TMGfYctDH/image.png" alt=""><figcaption></figcaption></figure>

### Settings

The action uses the following settings:

| Setting    | Description                                                                          | [Parsed](https://docs.mylinkconnect.com/actions-and-operations/dynamic-parsing) |
| ---------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| 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](https://docs.mylinkconnect.com/actions-and-operations/database/move-to-next-record) action. The flow of a complete loop on multiple records may look similar to this:

![](https://content.gitbook.com/content/tZEstFBYh3uMutlup6ku/blobs/lxyV6oEozFuzkf1cjeES/image.png)

If no [Field Filter Operation](https://docs.mylinkconnect.com/actions-and-operations/database/set-field-filter-value) 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 ](https://docs.mylinkconnect.com/actions-and-operations/database/set-field-filter-value)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 ](https://docs.mylinkconnect.com/actions-and-operations/database/broken-reference)package.
