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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can I set a specific d...
Power Automate
Unanswered

Can I set a specific domain for the FROM field for incoming emails flow

(0) ShareShare
ReportReport
Posted on by 2

Hello all,

 

Just want to preface this question I am new to Power Automate, so I'm sorry if this is straight forward, I couldn't find any posts for this type of question.

 

My email trigger for my flow the "From" field, is there a way to set to just the domain of the email address like @gmail.com for john.doe@gmail.com. I want to filter my trigger for a flow for all incoming emails from a certain email address format like all @yahoo.com or @fedex.com etc.

 

I tried entering %@gmail.com, and *@gmail.com, and the trigger didn't work for either. 

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

    Hi @LittleKidLover,

    what trigger your talking about? 

  • LittleKidLover Profile Picture
    2 on at
    Sorry should've mentioned what I was using...  "On new email with attachment" - for Outlook
     
    I did try Condition "Check from email address" and in advanced mode did this: @contains(triggerBody()?['from'], '@gmail.com')
    and for some reason it's not working, test says it ran successfully, but my attachment never saves to my SharePoint.
     
    My main task I want to do is:
    Setup 1 flow, with maybe 25 different FROM email formats(@fedex.com, @UPS.com, @gmail.com, etc.) when a specific email is sent to me from each email format, Power Automate will save each corresponding email to a specific SharePoint folder path, and overwrite any files with the same naming convention, and put the previous file that was in that SharePoint folder path into an Archive folder. 
     
    I know it's a lot, but is this doable you think?
  • VictorIvanidze Profile Picture
    13,079 on at

    Yes that's doable.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard