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,
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
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 !!!
User | Count |
---|---|
10 | |
4 | |
3 | |
2 | |
1 |
User | Count |
---|---|
15 | |
8 | |
7 | |
3 | |
2 |