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

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,204 Super User 2025 Season 2 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

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