
Announcements
I have an automated flow that runs when a new email arrives. It checks a reference in the new email to lookup an email with the same reference to return the original sender, so I can automatically forward the new email to them.
The issue I have is the "Top 1" option doesn't have an "Order By" option, so it returns the most recent email.
Is there a way I can order the results by received date ascending or exclude "RE:" and "FW:" subject lines to get the original source sender?
Thank you,
Mark
Hi @marklunn ,
Please try the api .
https://graph.microsoft.com/v1.0/me/messages?$filter=subject eq '<subject>'
Best Regards,
Wearsky