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 set condition f...
Power Automate
Answered

How to set condition for dynamic email subject

(0) ShareShare
ReportReport
Posted on by 7

Hi

 

I would like to create a flow that trigger with dynamic subject like example below

"Alert there's XX request await"

 

My condition is I want the flow to trigger only if XX is more than 10

 

This's my current flow

noppadolb_0-1679993680556.png

 

Thanks for advice

Categories:
I have the same question (0)
  • Verified answer
    Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Hi @noppadolb ,

     

    Try this: 

     

    Put your subject into an compose: 

     

    Heartholme_0-1680004520109.png

     

    Then do another comose with the following expression: 

     

    greaterorequals(int(substring(outputs('compose'),14,2)),10)
     
    If it contains more than 10, it will return true, if not it will return false. Note, your subject then has to be the exact way you wrote it above, IE. that the first number is the 14th character of the string. Substring formula starts counting from 0. 
     
    Then add a condition that checks if compose 2 are equal to true (You might have to put in true as a expression for it to work).
     
    ✔ Marking my post as a solution not only confirms that your question has been answered, but also helps others find solutions to similar problems.
    By doing so, you'll be making a valuable contribution to the community.

    Best Regards
    Heartholme
  • noppadolb Profile Picture
    7 on at

    Thanks @Heartholme

     

    This's my complete flow

     

    noppadolb_0-1680080340352.png

     

    First compose I use mail subject as an input

    Second compose use formula base on @Heartholme advice

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    @noppadolb 

     

    You're very welcome! It looks great 🙂

     

    Br
    Heartholme

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard