Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow condition that matches multiple words

(0) ShareShare
ReportReport
Posted on by 2

Hi everyone. I'm new to flow, but finding it very interesting and I've already used it for a few repetative tasks around the office.. Is it possible to achieve the following within an advanced condition perhaps?

 

I need to count or 'match' two words in an incoming email body.. The two words are triggered & cleared. If the word 'triggered' occurs more than 'cleared' continue with the flow (YES).. If not, the flow will end (NO).

 

If the above is possible, could you maybe give me a few pointers of how to set it up? Thanks in advance for any advice. 

  • needso Profile Picture
    2 on at
    Re: Flow condition that matches multiple words
    Hi Kris,

    Thanks for your time.. Below is an example email body as requested. I need some way to distinguish when there is a 'triggered' alert that doesn't have a corresponding 'cleared' within the email.. Hence my request for counting the two words.. Can you think of another way to achieve the requirement?

    Just let me know if you need anything else. Thanks again

    Matt

    ##EMAIL BODY EXAMPLE##

    There are 5 new alerts on the network

    Warning - Printer - Input Tray Missing

    Xerox 6605 - Records
    Cleared: 2018/02/22 16:43:32 GMT: This printer is no longer reporting a missing input tray
    Triggered: 2018/02/22 16:23:39 GMT: This printer is reporting a missing input tray

    Xerox 6605 - Radiology
    Cleared: 2018/02/22 16:22:46 GMT: This printer is no longer reporting a missing input tray
    Triggered: 2018/02/22 16:17:52 GMT: This printer is reporting a missing input tray
    Cleared: 2018/02/22 16:07:48 GMT: This printer is no longer reporting a missing input tray
  • v-xida-msft Profile Picture
    on at
    Re: Flow condition that matches multiple words

    Hi @needso,

     

    Could you please share a bit more about the incoming email body?

    Do you want to count the amount of the word 'triggered' and the word 'cleared' within the email body?

     

    If you want to count the amount of the word 'triggered' and the word 'cleared' within the email body, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

     

    Best regards,

    Kris

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1