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 expression
Power Automate
Unanswered

Power Automate expression

(0) ShareShare
ReportReport
Posted on by 34

Does anyone know if Microsoft has changed the way expressions work?

I had the expression bellow working for a long time
 
if(equals(string(item()?['Escalation']), '0'), 'Zero', if(equals(string(item()?['Escalation']), '1'), 'One', if(equals(string(item()?['Escalation']), '2'), 'Two', if(equals(string(item()?['Escalation']), '3'), 'Three', if(equals(string(item()?['Escalation']), '4'), 'Four', '')))))

It suddenly stopped working I believe they want to force me ot change form '0' to 0 and the same for the other numbers.
Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at
    @jfcricardo 
    Use a dynamic reference key instead. If you aren't sure how to create one, take a look at this YT Tutorial:
     
    Are you using the Switch action in your flow? While it seems like a simple way to handle multiple conditions, it can quickly become inefficient and difficult to manage.
     
    Here’s why:
    ❌ You can’t use dynamic content in the Equals field.
    ❌ You have to manually recreate the same actions for each case.
    ❌ Any updates require you to edit every single case individually.
     
    This results in a flow that’s repetitive, hard to scale, and a nightmare to maintain.
    In this tutorial, I’ll show you how to replace redundant Switch actions with a **Dynamic Reference Key**—a simple but powerful way to streamline your flows. Instead of repeating the same actions over and over, you’ll create a **lookup-style structure** that makes your flows more efficient, scalable, and easier to update.
     
    IN THIS VIDEO:

    ✓ Why the Switch action is inefficient and what to use instead
    ✓ What is a Dynamic Reference Key
    ✓ Creating a custom look up in Power Automate
    ✓ Using a Dynamic Reference Key instead of writing an expression with nested if() functions
    ✓ How to use a Dynamic Reference Key to reduce actions in your flow
    ✓ How to use a Dynamic Reference Key to route emails to different recipients based on a MS Form Selection
    ✓ How to reduce redundancies in your flow by using a single Send an Email (V2) action instead of multiple instances
    ✓ How to use a Dynamic Reference Key to send email notifications 90, 60 and 30 days from today’s date

     

    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • Ellis Karim Profile Picture
    11,994 Super User 2026 Season 1 on at
    We need more details to help you! Please share a screenshot of your flow, showing the configured actions. If there’s an error, tell us which action failed and include the error message. This will help us understand the issue and provide a solution faster. Thank you!
     

    Ellis Karim
    Blog | LinkedIn | Bluesky

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard