You cannot run message trace by subject. You'll have to fetch all messages and filter them client-side instead.
How can I query email based on Subject in Exchange Online?

EnterpriseArchitect
6,041
Reputation points
Folks,
I need to be able to query the email that was sent in the past month (-30 days) with the subject "***Auto Reply:****".
How can I get the statistics as the Message trace (https://admin.exchange.microsoft.com/#/messagetrace) is not allowing me to enter the subject?
PowerShell can be used in this regard, but can only work in the past 10 days.
Thank you in advance.
Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,172 questions
Exchange | Exchange Server | Management
7,920 questions
Exchange | Hybrid management
2,309 questions
Windows for business | Windows Server | User experience | PowerShell
Accepted answer
-
Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
2022-10-07T06:57:13.397+00:00