Hi Santeri Elo,
You're experiencing an issue where the recipient
field in the EmailEngagementTrackingReportReceived
event is sometimes missing
, making it hard to track email engagement per recipient,
which is important for your analytics and attribution.
The recipient
field is supposed to always be present
in the AcsEmailEngagementTrackingReportReceivedEventData
model, but you're now getting events (like clicks
) where it's missing. This doesn't match the expected behavior from the SDK
and likely points to a backend issue
or schema mismatch
in Azure Communication Services (ACS) Email tracking.
If the recipient
field is missing, your system can't link engagement events to specific email addresses, which breaks your tracking.
- Update your event handler to safely handle missing recipient fields and log key details like
messageId
,engagementType
, andtimestamp
for tracking.
Here’s a JavaScript/TypeScript example:
if (!event.data.recipient) {
console.warn(`Missing recipient for engagementType: ${event.data.engagementType}, messageId: ${event.data.messageId}`);
// Optionally retry or flag for reprocessing
}
- You can use the
messageId
in the event payload to identify the recipient assuming you stored the mapping betweenmessageId
andrecipient
when sending emails through Azure Communication Services (ACS). - Since this is a
backend issue
with Azure Communication Services, we recommend raising a support ticket to report the inconsistency, confirm if it's expected or a bug, and ask about a fix or schema update.
https://learn.microsoft.com/en-us/azure/event-grid/event-schema-communication-services#events-types
Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.
Let me know if you have any further Queries.