cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drhorg
Helper II
Helper II

copy flow from managed solution to unmanaged

We have an unmanaged solution that contain all the cloud flows in DEV.  this solution is deployed as managed in PROD. Unfortunately, we had to update one of the PROD flows directly. However, I need to update the code back to DEV. Wandering if there is any way to copy this flow code from PROD to DEV? I was thinking create unmanaged solution in prod by add the cloud flow from PROD, then export and import as unmanaged over DEV. then copy this flow back to original unmanaged solution in DEV. Would this work? Or how is the simplest to move back the code from PROD to DEV?

 

Thank you,

3 REPLIES 3
HSheild
Super User
Super User

Hi @drhorg 

 

Usually, if I have to make an emergency change to a flow in Prod I would just note down the manual changes I did and then repeat those manually in Dev.

 

However, technically, the steps you outline to put the flow into an unmanaged Solution in Prod etc. should work.

 

Just remember, the next time you deploy an updated managed solution to Prod that you should also remove the unmanaged layer from the flow you edited.  Solution layers - Power Apps | Microsoft Docs

DeviKrishna
Super User
Super User

Hi @drhorg ,

 

Yes it would work. If there are more changes do it that way. If the changes are less then follow @HSheild  and update them manually in dev environment.

 

The best practice is to take the changes from sandbox ( dev..) to Prod instance. Do the changes in dev and push it as managed to Prod.. This would take a few minutes more on deployment but avoid reverse engineering.

Try to use environment variables where ever possible to avoid manual updates in flow.

 

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

My Blog: Dynamics 365 Key Topics – https://d365topicsbydk.com/

 

My YouTube Channel : https://www.youtube.com/channel/UCxSIryP2ah2VpEFr-Z72t1A

 

Regards
Devi

Hi @HSheild , sorry but I did not understand the reason for your last sentence and I believe it is important. Can you please explain "Just remember, the next time you deploy an updated managed solution to Prod that you should also remove the unmanaged layer from the flow you edited.  Solution layers - Power Apps | Microsoft Docs"

Do you mean go into the Solution Layers and click the Unmanaged Layer row and "Remove unmanaged layer" . if so, can you please let me know what is the reason of this. 

Thank you very much for looking into this and helping !!!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Users online (2,089)