You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/digital-twins/how-to-use-power-platform-logic-apps-connector.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
5
5
description: Learn how to connect Power Platform and Logic Apps to Azure Digital Twins using the connector
6
6
author: baanders
7
7
ms.author: baanders # Microsoft employees only
8
-
ms.date: 03/22/2023
8
+
ms.date: 03/11/2025
9
9
ms.topic: how-to
10
10
ms.service: azure-digital-twins
11
11
@@ -15,7 +15,7 @@ ms.service: azure-digital-twins
15
15
16
16
You can integrate Azure Digital Twins into a [Microsoft Power Platform](/power-platform) or [Azure Logic Apps](../logic-apps/logic-apps-overview.md) flow, using the *Azure Digital Twins Power Platform connector*.
17
17
18
-
The connector is a wrapper around the Azure Digital Twins [data plane APIs](concepts-apis-sdks.md#data-plane-overview) for twin, model and query operations, which allows the underlying service to talk to [Microsoft Power Automate](/power-automate/getting-started), [Microsoft Power Apps](/power-apps/powerapps-overview), and [Azure Logic Apps](../logic-apps/logic-apps-overview.md). The connector provides a way for users to connect their accounts and leverage a set of prebuilt actions to build their apps and workflows.
18
+
The connector is a wrapper around the Azure Digital Twins [data plane APIs](concepts-apis-sdks.md#data-plane-overview) for twin, model, and query operations, which allows the underlying service to talk to [Microsoft Power Automate](/power-automate/getting-started), [Microsoft Power Apps](/power-apps/powerapps-overview), and [Azure Logic Apps](../logic-apps/logic-apps-overview.md). The connector provides a way for users to connect their accounts and apply a set of prebuilt actions to build their apps and workflows.
19
19
20
20
For an introduction to the connector, including a quick demo, watch the following IoT show video:
21
21
@@ -30,16 +30,16 @@ Sign in to the [Azure portal](https://portal.azure.com) with your account.
Lastly, you'll need to set up any [Power Platform](/power-platform) services where you want to use the connector.
33
+
Lastly, you need to set up any [Power Platform](/power-platform) services where you want to use the connector.
34
34
35
35
## Set up the connector
36
36
37
-
For Power Automate and Power Apps, set up the connection first before creating a flow. Follow the steps below to add the connection in Power Automate and Power Apps.
37
+
For Power Automate and Power Apps, set up the connection first before creating a flow. Perform the following steps to add the connection in Power Automate and Power Apps.
38
38
1. Select **Connections** from the left navigation menu (in Power Automate, it's under the **Data** heading). On the Connections page, select **+ New connection**.
39
39
1. Search for *Azure Digital Twins*, and select the **Azure Digital Twins (preview)** connector.
40
40
1. Where the connector asks for **ADT Instance Name**, enter the [host name of your instance](how-to-set-up-instance-portal.md#verify-success-and-collect-important-values).
41
41
1. Enter your authentication details when requested to finish setting up the connection.
42
-
1. To verify that the connection has been created, look for it on the Connections page.
42
+
1. To verify that the connection is created, look for it on the Connections page.
43
43
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/power-connection.png" alt-text="Screenshot of Power Automate, showing the Azure Digital Twins connection on the Connections page." lightbox="media/how-to-use-power-platform-logic-apps-connector/power-connection.png":::
44
44
45
45
For Logic Apps, you can use the Azure Digital Twins built-in connection when you [create a flow](#create-a-flow) in the next section. For more information on built-in connectors, see [Built-in connectors in Azure Logic Apps](../connectors/built-in.md).
@@ -48,39 +48,39 @@ For Logic Apps, you can use the Azure Digital Twins built-in connection when you
48
48
49
49
You can incorporate Azure Digital Twins into Power Automate flows, Logic Apps flows, or Power Apps applications. Using the Azure Digital Twins connector and over 700 other Power Platform connectors, you can ingest data from other systems into your twins, or respond to system events.
50
50
51
-
Follow the steps below to create a sample flow with the connector in Power Automate.
51
+
Perform the following steps to create a sample flow with the connector in Power Automate.
52
52
1. In Power Automate, select **My flows** from the left navigation menu. Select **+ New flow** and **Instant cloud flow**.
53
53
1. Enter a **Flow name** and select **Manually trigger a flow** from the list of triggers. **Create** the flow.
54
54
1. Add a step to the flow, and search for *Azure Digital Twins* to find the connection. Select the Azure Digital Twins connection.
55
55
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/power-automate-action-1.png" alt-text="Screenshot of Power Automate, showing the Azure Digital Twins connector in a new flow." lightbox="media/how-to-use-power-platform-logic-apps-connector/power-automate-action-1-big.png":::
56
-
1. You'll see a list of all the [actions](/connectors/azuredigitaltwins) that are available with the connector. Pick one of them to interact with the [Azure Digital Twins APIs](/rest/api/azure-digitaltwins/).
56
+
1. You see a list of all the [actions](/connectors/azuredigitaltwins) that are available with the connector. Pick one of them to interact with the [Azure Digital Twins APIs](/rest/api/azure-digitaltwins/).
57
57
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/power-automate-action-2.png" alt-text="Screenshot of Power Automate, showing all the actions for the Azure Digital Twins connector." lightbox="media/how-to-use-power-platform-logic-apps-connector/power-automate-action-2-big.png":::
58
58
1. You can continue to edit or add more steps to your workflow, using other connectors to build out your integration scenario.
59
59
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/power-automate-action-3.png" alt-text="Screenshot of Power Automate, showing a Get twin by ID action from the Azure Digital Twins connector in a flow." lightbox="media/how-to-use-power-platform-logic-apps-connector/power-automate-action-3.png":::
60
60
61
-
Follow the steps below to create a sample flow with the connector in Power Apps.
61
+
Perform the following steps to create a sample flow with the connector in Power Apps.
62
62
1. In Power Apps, select **+ Create** from the left navigation menu. Select **Blank app** and follow the prompts to create a new app.
63
63
1. In the app builder, select **Data** from the left navigation menu. Select **Add data** and search for *Azure Digital Twins* to find the data connection. Select the Azure Digital Twins connection.
64
64
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/power-apps-action-1.png" alt-text="Screenshot of Power Apps, showing the Azure Digital Twins connector as a data source." lightbox="media/how-to-use-power-platform-logic-apps-connector/power-apps-action-1.png":::
65
-
1. Now, the [actions](/connectors/azuredigitaltwins) from the Azure Digital Twins connector will be available as functions to use in your app.
65
+
1. Now, the [actions](/connectors/azuredigitaltwins) from the Azure Digital Twins connector are available as functions to use in your app.
66
66
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/power-apps-action-2.png" alt-text="Screenshot of Power Apps, showing the Get twin by ID action being used in a function." lightbox="media/how-to-use-power-platform-logic-apps-connector/power-apps-action-2.png":::
67
67
1. You can continue to build out your application with access to Azure Digital Twins data. For more information about building Power Apps, see [Overview of creating apps in Power Apps](/power-apps/maker/).
68
68
69
-
Follow the steps below to create a sample flow with the connector in Logic Apps.
69
+
Perform the following steps to create a sample flow with the connector in Logic Apps.
70
70
1. Navigate to your logic app in the [Azure portal](https://portal.azure.com). Select **Workflows** from the left navigation menu, and **+ Add**. Follow the prompts to create a new workflow.
71
71
1. Select your new flow and enter into the **Designer**.
72
72
1. Add a trigger to your app.
73
73
1. Select **Choose an operation** to add an action from the Azure Digital Twins connector. Search for *Azure Digital Twins* on the **Azure** tab to find the data connection. Select the Azure Digital Twins connection.
74
74
:::image type="content" source="media/how-to-use-power-platform-logic-apps-connector/logic-apps-action.png" alt-text="Screenshot of Logic Apps, showing the Azure Digital Twins connector." lightbox="media/how-to-use-power-platform-logic-apps-connector/logic-apps-action.png":::
75
-
1. You'll see a list of all the [actions](/connectors/azuredigitaltwins) that are available with the connector. Pick one of them to interact with the [Azure Digital Twins APIs](/rest/api/azure-digitaltwins/).
76
-
1. After selecting an action from the Azure Digital Twins connector, you'll be asked to enter authentication details to create the connection.
75
+
1. You see a list of all the [actions](/connectors/azuredigitaltwins) that are available with the connector. Pick one of them to interact with the [Azure Digital Twins APIs](/rest/api/azure-digitaltwins/).
76
+
1. After selecting an action from the Azure Digital Twins connector, you're asked to enter authentication details to create the connection.
77
77
1. You can continue to edit or add more steps to your workflow, using other connectors to build out your integration scenario.
78
78
79
79
## Limitations and suggestions
80
80
81
81
Here are some limitations of the connector and suggestions for working with them.
82
82
83
-
* Some connector actions (such as Add Model) require input in the form of a literal string that starts with *@*. In these cases, escape the *@* character by using *@@* instead. This will keep the literal value from being interpreted as a JSON expression.
83
+
* Some connector actions (such as Add Model) require input in the form of a literal string that starts with *@*. In these cases, escape the *@* character by using *@@* instead. Escaping the *@* character keeps the literal value from being interpreted as a JSON expression.
84
84
* Since Azure Digital Twins deals with dynamic schema responses, you should parse the JSON received from the APIs before consuming it in your application. For example, here's a set of calls that parse the data before extracting the `dtId` value: `Set(jsonVal, AzureDigitalTwins.GetTwinById("your_twin_id").result); Set(parsedResp, ParseJSON(jsonVal)); Set( DtId, Text(parsedResp.'$dtId'));`.
0 commit comments