web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition for display ...
Power Automate
Unanswered

Condition for display name in email From field

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I'm building a flow where I want emails from certain senders to be moved to another folder.

 

This works fine for most emails, but I'm having problems setting up a condition that only triggers on certain email display names.

 

The message details contains this format:

From: Some Textual Name <common.mailer@mailer.domain.com>

 

So I want it to trigger for the above email, but NOT for this email:

From: Another Name <common.mailer@mailer.domain.com>

 

My thinking is to set up the condition as:

From contains Some Textual Name

 

... but nothing happens. It only seems to work if I refer to the actual email address, but that would then handle both of the emails. Can this be solved in some way?

 

These emails are from and to Exchange addresses, if that is pertinent here.

Categories:
I have the same question (0)
  • Verified answer
    VictorIvanidze Profile Picture
    13,073 on at

    Add the "Export email (V2)" action to get the display name of the sender.

  • InterClaw Profile Picture
    6 on at

    Thank you, that worked!

    One question about this though. There's only one field available from "Export email (V2)" called "body". Does this include the whole email, including the header?

     

    So if I want to ensure that "Some Textual Name" is actually part of the From field, and not just happened to be part of the actual body of some other email, should I maybe check for:

     

    Some Textual Name <common.mailer@mailer.domain.com>

     

    or even:

     

    From: Some Textual Name <common.mailer@mailer.domain.com>

     

    I guess even this would be a simpler solution:

     

    From: Some Textual Name

  • VictorIvanidze Profile Picture
    13,073 on at

    "Export email (V2)" returns the whole email in eml format.

    I'd split the body to strings (delimeter is<CR><LF>) and find the one that starts with "From:"

  • InterClaw Profile Picture
    6 on at

    Thanks for your help with this!

     

    I ended up using the "From: Some Textual Name" approach only, which will do nicely for my personal needs and eliminate some potential false positives.

  • VictorIvanidze Profile Picture
    13,073 on at

    OK, please mark my answer as a solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard