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 / Expression to Replace ...
Power Automate
Answered

Expression to Replace HIGH, LOW or MEDIUM with a number(1, 5, 9 respectively)

(0) ShareShare
ReportReport
Posted on by 55

Expression to Replace HIGH, LOW or MEDIUM with a number(1, 5, 9 respectively)

Sorry for the somewhat newbie question, but I need to do some replacing as the title explains.

I know how to do a compose with:

 

replace(outputs('TaskValue'), 'MEDIUM', '5')

 

Which will output the 5 if the TaskValue is Medium, but what I need is to have it in the same output either of the three values (HIGH, MEDIUM, LOW) converted to 1, 5 or 9, so I can use the output of that compose to fill out a field down the Flow.

 

How can I achieve that? Grateful for any help provided.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,755 Most Valuable Professional on at

    Hi @flavioPBadmin,


    Since this is only 3 values, I would go for the easiest option which is a nested replace functions in an expression.

     

     

    replace(replace(replace(outputs('TaskValue'), 'MEDIUM', '5'), 'LOW', '9'), 'HIGH', '1')

     

  • flavioPBadmin Profile Picture
    55 on at

    Thanks, that works for me!

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 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard