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 / Power Automate when a ...
Power Automate
Answered

Power Automate when a new email arrives Subject Filter Wildcard

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Community,

I want to apply a subject filter with wildcard characters, I have tried the below expression.

@startswith(triggerOutputs()?['body/subject'], 'Doc*')

It is taking the 'Doc*' as a string value and not taking '*' as a wildcard character.

 

Is there any expression available for wildcard matching in Power Automate flow?

 

Thanks,

@Anonymous 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ï¼Œ

     

    There is no wildcard character for startswith , you could use this formula directly:

     

    @startswith(triggerOutputs()?['body/subject'], 'Doc')

    If you wish to limit the subject to 4 characters, you could try:

    @and(
     startswith(triggerOutputs()?['body/subject'], 'Doc'),
     equals(length(triggerOutputs()?['body/subject']),4)
    )

     

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Bof, 

    Thanks for your reply!
    So you are coming to tell is no wildcard character only for startswith? So, can we use the Wildcard characters for string values like contains, not contains, endswith, and not endswith ??

    Also, I make sure to try to limit the subject to the 4-character method that you suggested.

    Thanks,
    @Anonymous 

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    In addition, you could also try regex.

     

    https://andersjensen.org/how-to-use-regex-in-power-automate/

     

    Best Regards,

    Bof

     

  • Verified answer
    VictorIvanidze Profile Picture
    13,079 on at

    Power Automate string functions do not support wildcards.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for clearing my doubts. @VictorIvanidze 

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 62 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 58

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard