
Dear @Ayush Shrimal,
Thank you so much for contacting Microsoft Q&A Forum.
Based on your concern, I have tried to research and found that as of now, Microsoft Graph API does not yet offer a direct replacement for the reporting webservice's Message Trace functionality in Exchange Online. There is no direct Graph API endpoint exists for pulling Message Trace logs similar to the legacy ReportingWebService (MessageTrace and MessageTraceDetail) endpoints. I also found 2 partially similar cases that you can consult:
- exchange online How Do I Call an API to Obtain Email Tracking Logs? - Microsoft Q&A
- Graph API to download message trace - Microsoft Q&A
Besides that, Microsoft has introduced Export-Import APIs in Microsoft Graph (currently in public preview) that allow:
- Exporting and importing mailbox content (emails, contacts, calendar items).
- Navigating mailbox folder hierarchies.
- Managing folders and extended properties.
However, these APIs are not designed for message trace or delivery diagnostics. They are more suited for backup, archiving, and migration scenarios.
References:
Therefore, until Microsoft releases a Graph-based Message Trace API, I have several suggestions that you can use for this time:
1.Continue using the legacy reporting webservice until it's fully deprecated.
2.Use PowerShell cmdlets like Get-MessageTrace and Get-MessageTraceDetail via Exchange Online PowerShell. References:
Get-MessageTrace (ExchangePowerShell) | Microsoft Learn
Get-MessageTraceDetail (ExchangePowerShell) | Microsoft Learn
Additionally, Microsoft recommends migrating from Exchange Web Services (EWS) to Microsoft Graph for most mailbox-related operations. However, message trace is one of the few areas where Graph API still lacks parity. You can consult in here: Microsoft Graph Outlook API for mail, calendars, and contacts | Microsoft Learn
I hope this information can help you to clarify this feature.
Wish you a pleasant day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.