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 / how to apply dynamic f...
Power Automate
Answered

how to apply dynamic filter in retrieve email message from outlook action

(0) ShareShare
ReportReport
Posted on by 43

Hi ,

i want to retrieve the email message with below subject line

InaccurateLevel_YYYY-MM-DD

But my main concern is InaccurateLevel YYYY-MM-DD this string value and date is fixed but this underscore which is in between

InaccurateLevel_YYYY-MM-DD is not fixed it can be anything space , or || or anything 

so, i need to handle the situation where if anything come in between bot dont fail.

 

I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,572 Super User 2026 Season 1 on at

    Will there be other emails with InaccurateLevel in subject line? If not then I would recommend putting just that in the subject line:

    eetuRobo_0-1718118048186.png


    Then (if needed) after that you could check if it ends with the date format with regex: \d{4}-\d{2}-\d{2}$

    eetuRobo_1-1718118450544.png

     

  • kanha123_456 Profile Picture
    43 on at

    @eetuRobo thanks for response , the date i want only current date ...in that case what exact expression need to put

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I recommend first retrieving all emails with "InaccurateLevel", as @eetuRobo suggested. If you mark your emails as unread after processing, this should be fine, as you won't be getting too many each time.

     

    And then inside the loop, you don't need any regex or the Parse text action, if you're specifically checking for the current date. You just need Get current date time to get the date and then Convert date time to text to convert it to a custom format that you want.

     

    And then simply check if the current email subject contains the formatted date. If it does - process the email. If it doesn't - skip it. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard