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 can I work around ...
Power Automate
Answered

How can I work around the maximum number allowed in Switch action?

(0) ShareShare
ReportReport
Posted on by 256

My customer wants me to create a Flow to send out email notifications to each department. There are more than 25 departments, but the maximum number of CASE allowed for Switch action is 25. When I tried to save the Flow, I got the error message below. How can I get a workaround for this problem? 

 

Thank you in advance.

 

Pei

 

SwitchMaximumNumber.JPG

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    @ppei 

     

    Create a config list -  which has the 25 departments and the email addresses

    Within Flow, do get items from this config list (list can be hosted in excel, sharepoint , sql or array within flow)

    Then run a for loop within flow for the data receieved

    and send emails to each dept within loop

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

  • ppei Profile Picture
    256 on at

    Thank you for your fast reply. I really appreciate it. I'll try that. 

  • ppei Profile Picture
    256 on at

    I used Switch action because I need to get the department from SharePoint list. For example, in case it is Finance department from the list, then the email will be sent to a person in Finance department. How can I set loop to do this?

  • RezaDorrani Profile Picture
    12,145 on at

    @ppei 

    Paste screenshots of your Flow actions here

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Just split the Switch into two switches.  Handle as many departments as you can in the first switch then add a second switch on the default branch of the first switch.  Handle the rest of the departments on that switch.

  • ppei Profile Picture
    256 on at

    Great idea! Could you send me a screenshot how I can add the second switch to Default? Should I just add a new Switch action for Default?

  • Verified answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    I didn't add all the switches, but this should give you the idea

    screenshot.png

  • ppei Profile Picture
    256 on at

    @Pstork1 Thank you for your help. It works!

  • Adrienn1 Profile Picture
    2 on at

    Not a solution, neted switch has a limit of 8 conditions.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    All actions in Power Apps are limited to 8 levels max.  If you need more than 8 use conditions to generate unique values for each combination of nested levels.  THen use those values in a switch as level one to add more nested levels.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard