Skip to content

Commit 14ecb88

Browse files
authored
Merge pull request #232683 from jjsanchezms/acs-logic-apps-quickstart
Acs logic apps quickstart
2 parents c43bccc + 18b1bce commit 14ecb88

File tree

12 files changed

+342
-325
lines changed

12 files changed

+342
-325
lines changed

articles/communication-services/.openpublishing.redirection.communication-services.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,21 @@
163163
"source_path_from_root": "/articles/communication-services/concepts/analytics/insights.md",
164164
"redirect_url": "/azure/communication-services/concepts/analytics/log-analytics",
165165
"redirect_document_id": false
166+
},
167+
{
168+
"source_path_from_root": "/articles/communication-services/quickstarts/email/logic-app.md",
169+
"redirect_url": "/azure/communication-services/quickstarts/email/send-email?pivots=programming-language-power-platform",
170+
"redirect_document_id": true
171+
},
172+
{
173+
"source_path_from_root": "/articles/communication-services/quickstarts/chat/logic-app.md",
174+
"redirect_url": "/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-power-platform",
175+
"redirect_document_id": true
176+
},
177+
{
178+
"source_path_from_root": "/articles/communication-services/quickstarts/sms/logic-app.md",
179+
"redirect_url": "/azure/communication-services/quickstarts/sms/send?pivots=programming-language-power-platform",
180+
"redirect_document_id": true
166181
}
167182
]
168183
}

articles/communication-services/quickstarts/chat/get-started.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.date: 06/30/2021
1010
ms.topic: quickstart
1111
ms.service: azure-communication-services
1212
ms.subservice: chat
13-
zone_pivot_groups: acs-azcli-js-csharp-java-python-swift-android
13+
zone_pivot_groups: acs-azcli-js-csharp-java-python-swift-android-power-platform
1414
ms.custom: mode-other, devx-track-azurecli
1515
---
1616
# Quickstart: Add Chat to your App
@@ -45,6 +45,10 @@ Get started with Azure Communication Services by using the Communication Service
4545
[!INCLUDE [Chat with iOS SDK](./includes/chat-swift.md)]
4646
::: zone-end
4747

48+
::: zone pivot="programming-language-power-platform"
49+
[!INCLUDE [Chat with Power Platform](./includes/chat-logic-app.md)]
50+
::: zone-end
51+
4852
## Clean up resources
4953

5054
If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. Learn more about [cleaning up resources](../create-communication-resource.md#clean-up-resources).
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: azure-communication-services
5+
author: jjsanchezms
6+
manager: chpalm
7+
ms.service: azure-communication-services
8+
ms.subservice: azure-communication-services
9+
ms.date: 07/20/2022
10+
ms.topic: include
11+
ms.custom: include file
12+
ms.author: sanchezjuan
13+
---
14+
15+
## Prerequisites
16+
17+
- An Azure account with an active subscription, or [create an Azure account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
18+
19+
- An active Azure Communication Services resource, or [create a Communication Services resource](../../create-communication-resource.md).
20+
21+
- An active Azure Logic Apps resource, or [create a blank logic app with the trigger that you want to use](../../../../logic-apps/quickstart-create-first-logic-app-workflow.md). Currently, the Communication Services Chat connector provides only actions, so your logic app requires a trigger, at minimum.
22+
23+
## Create user
24+
25+
Complete these steps in Power Automate with your Power Automate flow open in edit mode.
26+
27+
To add a new step in your workflow by using the Communication Services Identity connector:
28+
29+
1. In the designer, under the step where you want to add the new action, select **New step**. Alternatively, to add the new action between steps, move your pointer over the arrow between those steps, select the plus sign (+), and then select **Add an action**.
30+
31+
1. In the **Choose an operation** search box, enter **Communication Services Identity**. In the list of actions list, select **Create a user**.
32+
33+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-create-user.png" alt-text="Screenshot that shows the Azure Communication Services Identity connector Create user action.":::
34+
35+
1. Enter the connection string. To get the connection string URL in the [Azure portal](https://portal.azure.com/), go to the Azure Communication Services resource. In the resource menu, select **Keys**, and then select **Connection string**. Select the copy icon to copy the connection string.
36+
37+
:::image type="content" source="../media/logic-app/azure-portal-connection-string.png" alt-text="Screenshot that shows the Keys pane for an Azure Communication Services resource." lightbox="../media/logic-app/azure-portal-connection-string.png":::
38+
39+
1. Enter a name for the connection.
40+
41+
1. Select **Show advanced options**, and then select the token scope. The action generates an access token and its expiration time with the specified scope. This action also generates a user ID that's a Communication Services user identity.
42+
43+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-create-user-action.png" alt-text="Screenshot that shows the Azure Communication Services Identity connector Create user action options.":::
44+
45+
1. In **Token Scopes Item**, select **chat**.
46+
47+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-create-user-action-advanced.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector advanced options.":::
48+
49+
1. Select **Create**. The user ID and an access token are shown.
50+
51+
## Create a chat thread
52+
53+
1. Add a new action.
54+
55+
1. In the **Choose an operation** search box, enter **Communication Services Chat**. In the list of actions, select **Create chat thread**.
56+
57+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-create-chat-thread.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector Create a chat thread action.":::
58+
59+
1. Enter the Communication Services endpoint URL. To get the endpoint URL in the [Azure portal](https://portal.azure.com/), go to the Azure Communication Services resource. In the resource menu, select **Keys**, and then select **Endpoint**.
60+
61+
1. Enter a name for the connection.
62+
63+
1. Select the access token that was generated in the preceding section, and then add a chat thread topic description. Add the created user and enter a name for the participant.
64+
65+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-create-chat-thread-input.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector Create chat thread action dialog.":::
66+
67+
## Send a message
68+
69+
1. Add a new action.
70+
71+
1. In the **Choose an operation** search box, enter **Communication Services Chat**. In the list of actions, select **Send message to chat thread**.
72+
73+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-send-chat-message.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector Send chat message action.":::
74+
75+
1. Enter the access token, thread ID, content, and name.
76+
77+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-send-chat-message-input.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector Send chat message action dialog.":::
78+
79+
## List chat thread messages
80+
81+
To verify that you sent a message correctly:
82+
83+
1. Add a new action.
84+
85+
1. In the **Choose an operation** search box, enter **Communication Services Chat**. In the list of actions, select **List chat thread messages**.
86+
87+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-list-chat-messages.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector List chat messages action.":::
88+
89+
1. Enter the access token and thread ID.
90+
91+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-list-chat-messages-input.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector List chat messages action dialog.":::
92+
93+
## Test your logic app
94+
95+
To manually start your workflow, on the designer toolbar, select **Run**. The workflow creates a user, issues an access token for that user, and then removes the token and deletes the user. For more information, review [How to run your workflow](../../../../logic-apps/quickstart-create-first-logic-app-workflow.md#run-workflow).
96+
97+
Now, select **List chat thread messages**. In the action outputs, check for the message that was sent.
98+
99+
:::image type="content" source="../media/logic-app/azure-communications-services-connector-list-chat-messages-output.png" alt-text="Screenshot that shows the Azure Communication Services Chat connector Send chat message action results.":::
100+
101+
## Clean up workflow resources
102+
103+
To clean up your logic app workflow and related resources, review [how to clean up Logic Apps resources](../../../../logic-apps/quickstart-create-first-logic-app-workflow.md#clean-up-resources).
104+

articles/communication-services/quickstarts/chat/logic-app.md

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)