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

Power Automate when a new email arrives Subject Filter Wildcard

(0) ShareShare
ReportReport
Posted on by

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
    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
    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
    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
    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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard