Skip to content

Commit 1e84dad

Browse files
add warning on event subject change
1 parent 3bd5106 commit 1e84dad

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

articles/communication-services/concepts/advanced-messaging/whatsapp/whatsapp-usernames-overview.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,25 @@ If the user has adopted a username and their phone number isn't available, the e
9494
> [!CAUTION]
9595
> The `from` field may now be empty or null. Do not assume this field always contains a phone number.
9696
97+
## Impact on event subjects
98+
99+
The `subject` field in Event Grid events for `AdvancedMessageReceived` uses the format `advancedMessage/sender/{sender@id}/recipient/{channel-id}`. When a WhatsApp user hides their phone number, the `{sender@id}` portion of the subject now contains the sender's BSUID instead of their phone number.
100+
101+
> [!WARNING]
102+
> **Breaking change:** If you have Event Grid subscriptions with subject filters based on the sender's phone number, those filters won't match events from users who have adopted a WhatsApp username and hidden their phone number. Update your subject filters and any webhook automation code that parses the event subject to account for BSUID values.
103+
104+
**Subject with phone number:**
105+
106+
```
107+
advancedMessage/sender/14255551234/recipient/11111111-1111-1111-1111-111111111111
108+
```
109+
110+
**Subject with BSUID (phone number hidden):**
111+
112+
```
113+
advancedMessage/sender/US.13491208655302741918/recipient/11111111-1111-1111-1111-111111111111
114+
```
115+
97116
## Impact on delivery status events
98117

99118
The [AdvancedMessageDeliveryStatusUpdated](../../../../event-grid/communication-services-advanced-messaging-events.md#microsoftcommunicationadvancedmessagedeliverystatusupdated-event) event now includes a new `toBSUID` field containing the recipient's BSUID.
@@ -165,6 +184,8 @@ To prepare your integration for WhatsApp usernames and BSUIDs:
165184

166185
3. **Update outbound messaging logic.** When replying to a username-only user, use the BSUID from the `fromBSUID` field as the `to` value in your send request. Sending to BSUIDs will be available starting in June 2026.
167186

187+
4. **Review Event Grid subject filters.** If you have webhook subscriptions that filter on the event `subject` (for example, filtering by a specific sender phone number), update those filters to also handle BSUID values. The sender portion of the subject may now contain a BSUID instead of a phone number.
188+
168189
## Key timeline
169190

170191
| Date | Milestone |

articles/communication-services/quickstarts/advanced-messaging/whatsapp/handle-advanced-messaging-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ With the introduction of WhatsApp usernames, Advanced Messaging events now inclu
9797
- **`AdvancedMessageDeliveryStatusUpdated`** events include a `toBSUID` field with the recipient's BSUID.
9898

9999
> [!WARNING]
100-
> **Breaking change:** The existing `from` and `to` fields may now be empty or null when a WhatsApp user has adopted a username and hidden their phone number. Update your event handlers accordingly. For more information, see [WhatsApp usernames and BSUIDs](../../../concepts/advanced-messaging/whatsapp/whatsapp-usernames-overview.md).
100+
> **Breaking change:** The existing `from` and `to` fields may now be empty or null when a WhatsApp user has adopted a username and hidden their phone number. Update your event handlers accordingly. Additionally, the event `subject` field may now contain a BSUID instead of a phone number, which can break existing webhook subject filters and automation code that parses the subject. For more information, see [WhatsApp usernames and BSUIDs](../../../concepts/advanced-messaging/whatsapp/whatsapp-usernames-overview.md).
101101
102102
## Next steps
103103

articles/event-grid/communication-services-advanced-messaging-events.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ Details for the attributes specific to `Microsoft.Communication.AdvancedMessageR
122122

123123
#### Examples
124124

125+
> [!WARNING]
126+
> **Breaking change:** The `subject` field uses the format `advancedMessage/sender/{sender@id}/recipient/{channel-id}`. When a user hides their phone number, `{sender@id}` contains a BSUID instead of a phone number. If you have Event Grid subscriptions with subject filters or automation code that parses the subject, update them to handle BSUID values. For more information, see [WhatsApp usernames and BSUIDs](/azure/communication-services/concepts/advanced-messaging/whatsapp/whatsapp-usernames-overview).
127+
125128
##### Text message received
126129

127130
```json

0 commit comments

Comments
 (0)