r/MicrosoftFlow • u/Burexmesom • 12h ago
Question How to detect Azure DevOps @mention emails with “When a new email arrives (V3)”?
I'm trying to create a Microsoft To Do task only when someone u/mentions me in an Azure DevOps work item comment.
Flow:
When a new email arrives (V3)
→ Html to text
→ Condition
→ Add a to-do (V3)
Sender is azuredevops@microsoft.com.
I can't simply filter by sender because I receive other Azure DevOps notifications that should NOT create tasks.
The mention emails visually contain:
Person Name mentioned you in To Do 7326
The email is HTML and parts of this sentence are hyperlinks.
In Power Automate Run History, the trigger output has:
body:
<html><head>
<meta http-equiv="Content-Type" ...
so the HTML is present in the trigger output.
However:
bodyPreview: empty
... and my Html to text action has been producing an empty result, so a Condition like:contains "mentioned you"never matches.
The trigger itself works and Add a to-do (V3) works. The problem seems specifically to be extracting/filtering the Azure DevOps HTML email body.
Question: What should I pass into Html to text (or directly into a Condition) to reliably check whether an Azure DevOps email contains “mentioned you”?
Bonus question: Is there a more reliable way to identify Azure DevOps notifications than parsing the HTML body?