cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
silpiaskz
New Member

Copy/Paste Actions inside Switch Condition

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Copy/Paste Actions inside Switch Condition

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!

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: Copy/Paste Actions inside Switch Condition

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

Dual Super User
Dual Super User

Re: Copy/Paste Actions inside Switch Condition

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!

View solution in original post

anpiyush
Regular Visitor

Re: Copy/Paste Actions inside Switch Condition

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 

wjpatton
New Member

Re: Copy/Paste Actions inside Switch Condition

 

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

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,451)