---
title: Subscribe to Topics with Flows
slug: manufacturing-connect-edge-v1/subscribe-to-topics-with-flows
docTags: 
createdAt: 2024-01-04T18:47:07.051Z
---

You have the following options for subscribing to topics in flows.&#x20;

# Subscribe to a Single Topic

The following steps describe how to subscribe to a single topic from a connected DeviceHub device. See the following to learn more:

- [Connect a Device](docId\:RFVIJdxz7DBAd8mwbismA)
- [Add Tags](docId\:iOaNZd2AwqnkuppgeE3Eh)

**To subscribe to a single topic:**

1. Get the topic name to configure the *DataHub Subscribe* node in Flows.
   - Go to **DeviceHub** and select the **Tags&#xA0;**&#x70;ane from the menu bar.
   - Click the **Copy&#xA0;**&#x69;con next to th&#x65;*&#xA0;RAW Topic* from which you wish to receive data.
     ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/8YewX7cHzZB8kstxrZx2g_aw.png "Manufacturing Connect Edge DeviceHub Page")
2. In the navigation menu, click **Flows Manager**.
3. To access an existing flow canvas, click th&#x65;**&#x20;Go To Flow Definition&#x20;**&#x69;con next to the flow status. For creating a new flow, refer t&#x6F;*&#x20;Step 2: Create Individual Flow* in [Create a Flow](docId:-oL2gwhtG2gkdJLBR6cai) to learn more.
   The *Flow* canvas opens in a new browser tab.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/3TLqGaYW-S5WCAoNHR5gl_xx.png "Go To Flow Definition icon")
4. Drag the **DataHub Subscribe Node** and **Debug Node** on the canvas and connect them.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/FwWYGnQPIqeg0rCCSTgFN_aaaa.png "The Debug and DataHub Subscribe nodes")
5. Double-click the **DataHub Subscribe&#x20;**&#x6E;ode to open the *Edit DataHub Subscribe* node dialog box. Configure the node by following these steps:
   - Copy and paste the topic from **DeviceHub > Tags** into the *Topic&#xA0;*&#x66;ield. 
   - If needed, configure the Datahub Subscribe connection. See the *Step 3: Configure Connector Nodes* section in [Create a Flow](docId:-oL2gwhtG2gkdJLBR6cai) to learn more.&#x20;
   - Enter a name in the *Name&#xA0;*&#x66;ield and click **Done**.
     ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/CvHmyQFBjpNVpzaQmK76v_aws.png "The debug node connected to existing flow")
6. Click the **Deploy** button located at the top-right corner of the screen to save the flow.
7. Expand the message window beneath the flow.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/PdO3lIPUKNYpR9eiOS-2g_wda.png "The message window")
8. Click the **Debug&#xA0;**&#x69;con to view the data output.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/EU6xcVQGYQIVH7p2AgVFy_wwww.png "The debug icon")
9. Review the data payload in the message window.&#x20;
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/L_YueXsA7xy9G7MW7WIYY_waq.png "Successful write message")

# Subscribe to Multiple Topics using Wildcards

Use **Wildcards&#x20;**&#x74;o subscribe to multiple topics at once.

## Wildcard Usage

`>`**&#x20;Wildcard Character**: Use the `>` wildcard character to subscribe to messages from multiple tags. Example: `devicehub.alias.>` will subscribe to every topic in the DeviceHub.

`*`**&#x20;Wildcard Character**: Use the `*` wildcard character to match a single topic between `.` characters in tags. Example: `devicehub.alias.*.*` matches topics with two-character sequences after each of the two `.` characters.

:::hint{type="info"}
**Note:&#x20;**&#x55;sing just the `>` wildcard character subscribes to all topics, which can cause slowdowns when sending data to databases or clouds. Consider using [Function Nodes](docId\:qjQdhxxFI2Q7T5PQpsTCl) to trim data or file nodes for efficiency.&#x20;
:::

## Use Wildcards to Subscribe to Multiple Topics

To subscribe to multiple topics in flows, replace the topic name in step five of "Subscribe to a Single Topic" with the information about topic wildcards as below.&#x20;

**To use wildcards to subscribe to multiple topics:&#x20;**

1. Complete steps 1-5 from "Subscribe to a Single Topic" above.&#x20;
2. Replace the topic name with the desired wildcard-based topic.&#x20;
   **Syntax Examples:**
   `devicehub.alias.>` (Subscribe to all topics in DeviceHub)
   `devicehub.alias.{Device_ID}.>` (Subscribe to all tags from a specific DeviceHub device)
   `devicehub.alias.*.test_tag` (Subscribe to all tags named test\_tag from every DeviceHub device)
   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/xngWzX0aI46LdbNvKhToy_aawwaa.png" size="50" width="538" height="321" position="center" caption="Edit Datahub Subscribe node dialog box" showCaption="true"}
3. Click **Done** and save the flow by clicking the **Deploy&#xA0;**&#x62;utton at the top-right corner of the screen.
4. Expand the message window beneath the flow.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/qUN5U9gp0rXYkLw_78Q8K_wda.png "The message window")
5. Click the **Debug&#xA0;**&#x69;con to view the data output.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/ty5MlM2L2Y6XYo16cioXI_wwww.png "The debug icon")
6. Review the data payload in the message window.&#x20;
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/Nq0jhivSWKhi8iRUJYOJQ_image.png "Data output from all Topics")

