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 / Copy/Paste Actions ins...
Power Automate
Unanswered

Copy/Paste Actions inside Switch Condition

(1) ShareShare
ReportReport
Posted on by 9

Hi All,

 

I am trying to duplicate an action that is under one Switch Case to all other cases. However, when i copy to clipboard and try to select the action from "My Clipboard", it gives me the following error message - "Failed to find SWITCH"CASE in definition". I can move the actions between cases, but i'd like to replicate the actions. It does not matter which Case I pick, the error message is the same, just the Case number changes.

 

Has anyone come across this issue before? or is aware of a potential solution?

 

Thanks.

Categories:
I have the same question (2)
  • RezaDorrani Profile Picture
    12,143 on at

    Hi @silpiaskz 

     

    This seems to be a bug

    same case for me

     

    reason is because the definition of the copied action is different when used inside switch case 

     

     

    Regards,

    Reza Dorrani

     

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

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @silpiaskz 

     

    The copy actions to clip board and paste is a preview feature and currently there are a couple of issues including the switch case action control. 

     

    You can raise it as a bug here: https://powerusers.microsoft.com/t5/I-Found-A-Bug/bd-p/BugFound

     

    This should be fixed in the upcoming releases. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • anpiyush Profile Picture
    36 on at

    As a workaround you can place your copied activity somewhere near to switch case block but mind that out side the block . then you can drag that inside switch block smoothly without any error 

  • Community Power Platform Member Profile Picture
    on at
     

    I have figured out a workaround even when dealing with controls. It can be very useful when you have a lot of cases on your switch. 

     

    1. Create a parallel branch above your control

    2. Create a scope under the parallel branch

    3. Within the scope create the entire process you want for the case

    4. Copy your scope to clipboard

    5. Paste a new scope under the parallel branch as well

    6. Drag your duplicate scope into the desired case

    7. Update small changes accordingly per case

    8. Rinse Repeatimage.png

  • Yazan-Hijji Profile Picture
    4 on at

    best answer..thanks!

  • Community Power Platform Member Profile Picture
    on at

    This is hilarious! Probably MS thought this way but didn't  broadcast the message to the end users and hence their feature became bug! Alas!

  • rS1son121016 Profile Picture
    4 on at

    Hi, 

     

    I encountered the same issue with Switch Case and the work around trick I did is, Every time I Update the item eq. Task Status from what is inputted in Post Adaptive Card with response, I will copy exactly the same case name as encircled with red in the expression below But not on the other cases which has a different Case Name.

    switch case.pngexpression1.png

  • CU10010325-0 Profile Picture
    31 on at

    Hello there,

     

    It's 2022 now. Just to inform you that this bug is still occurring within SWITCH CASE conditions in Power Automate. My workaround for it is to copy and paste the action outside the SWITCH CASE (before or after) and then just drag-and-drop it to the relevant CASE.

  • jainbhavesh89 Profile Picture
    5 on at

    Thanks, this worked and solved my problem. 

  • StruanG Profile Picture
    4 on at

    Perfect!

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard