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
title: Azure Communication Services - Advanced Messaging events
3
3
description: This article describes how to use Azure Communication Services as an Event Grid event source for Advanced Messaging Events.
4
4
ms.topic: conceptual
5
-
ms.date: 09/30/2022
5
+
ms.date: 07/15/2024
6
6
author: shamkh
7
7
ms.author: shamkh
8
8
---
9
9
10
10
# Azure Communication Services - Advanced Messaging events
11
11
12
-
This article provides the properties and schema for communication services advanced messaging events. For an introduction to event schemas, see [Azure Event Grid event schema](event-schema.md).
12
+
This article provides the properties and schema for Communication Services Advanced Messaging events. For an introduction to event schemas, see [Azure Event Grid event schema](event-schema.md).
13
13
14
14
## Event types
15
15
16
16
Azure Communication Services emits the following Advanced Messaging event types:
| Microsoft.Communication.AdvancedMessageReceived | Published when Communication Service receives a WhatsApp message. |
21
-
| Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated| Published when the WhatsApp sends status of message notification as sent/read/failed. |
|[Microsoft.Communication.AdvancedMessageReceived](#microsoftcommunicationadvancedmessagereceived-event)| Published when Communication Services Advanced Messaging receives a message.|
21
+
|[Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated](#microsoftcommunicationadvancedmessagedeliverystatusupdated-event)| Published when Communication Services Advanced Messaging receives a status update for a previously sent message notification.|
22
22
23
23
## Event responses
24
24
25
25
When an event is triggered, the Event Grid service sends data about that event to subscribing endpoints.
26
26
27
27
This section contains an example of what that data would look like for each event.
Published when Communication Services Advanced Messaging receives a message.
32
+
33
+
Example scenario: A WhatsApp user sends a WhatsApp message to a WhatsApp Business Number that is connected to an active Advanced Messaging channel in a Communication Services resource. As a result, a `Microsoft.Communication.AdvancedMessageReceived` with the contents of the user's WhatsApp message is published.
34
+
35
+
#### Attribute list
36
+
37
+
Details for the attributes specific to `Microsoft.Communication.AdvancedMessageReceived` events.
Published when Communication Services Advanced Messaging receives a status update for a previously sent message notification.
156
+
157
+
Example scenario: Contoso uses an active Advanced Messaging channel connected to a WhatsApp Business Account to send a WhatsApp message to a WhatsApp user. WhatsApp then replies to Contoso's Advanced Messaging channel with the status of the previously sent message. As a result, a `Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated` event containing the message status is published.
158
+
159
+
#### Attribute list
160
+
161
+
Details for the attributes specific to `Microsoft.Communication.AdvancedMessageReceived` events.
| channelType |`string`| ✔️ | Channel type of the channel that the message was sent on. |
166
+
| from |`string`| ✔️ | The channel ID that sent the message, formatted as a GUID. |
167
+
| to |`string`| ✔️ | Recipient ID that the message was sent to. |
168
+
| receivedTimestamp |`DateTimeOffset`| ✔️ | Timestamp of the message. |
169
+
| messageId |`string`| ✔️ | The ID of the message, formatted as a GUID. |
170
+
| status |`string`| ✔️ | Status of the message. Possible values include `Sent`, `Delivered`, `Read`, and `Failed`. For more information, see [Status](#status). |
171
+
| error |[`ChannelEventError`](#channeleventerror)| ✔️ | Contains the details of an error. |
@@ -93,9 +236,6 @@ This section contains an example of what that data would look like for each even
93
236
}]
94
237
```
95
238
96
-
> [!NOTE]
97
-
> Possible values for `Status` are `Sent`, `Delivered`, `Read` and `Failed`.
98
-
99
239
100
240
## Quickstart
101
241
For a quickstart that shows how to subscribe for Advanced Messaging events using web hooks, see [Quickstart: Handle Advanced Messaging events](../communication-services/quickstarts/advanced-messaging/whatsapp/handle-advanced-messaging-events.md).
0 commit comments