web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Switch case actions be...
Power Automate
Unanswered

Switch case actions being skipped

(1) ShareShare
ReportReport
Posted on by 12
I am using a switch case which passes approvals between individuals depending on a "status" variable. The approvals are sequential, however each approver can reject and request revisions from 1 of 2 people. This is why I created the switch case, to facilitate passing documents back and forth between people. The switch case leaves the "Do Until" loop when the status variable is changed to "Complete" after the final person has approved the documents.
 
Step 1: IM Approval Requested
This switch case executes successfully. The last step is that the "status" variable is updated - in this case the approval outcome was "approved" so the status variable was set to "AM Approval Requested". 
 
 
 
Step 2: AM Approval Requested
Because the previous case was approved, the case changes to "AM Approval" 
 
The problem is that the first action starts and ends before the status variable is redefined, and the case is switched. Notice that the start and end time for this step is 2:33:59 - 2:34:00 PM, but the end time for the previous step was 6:30:54 PM.
How can I stop the approvals from skipping? Instead they should wait until the switch case is changed...
Categories:
I have the same question (0)
  • Suggested answer
    Dominik Stalzer | primeone Profile Picture
    71 on at
    Hi.
    After the status variable is updated to "AM Approval Requested," add a Do Until loop to check if the status is equal to "AM Approval Requested."
    Once the status matches the expected value, exit the loop.
  • Suggested answer
    kl13 Profile Picture
    12 on at
    I think the issue may have been that the larger "Do Until" loop that the entire switch case lives inside of timed out after an hour. I updated this to last 30 days (as an overconservative precaution). I'm hoping this works and plan to test it out soon...

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard