Power Automate – Copy/Duplicate a Flow in a Solution

Yes you can but only way is to edit the xml files.

Follows the below steps:

Note: Before you do this take a backup copy of your existing solution.

1. Export the current solution

2. Once the solution is exported then unzip the current solution

3. You will see the following files and directory

image.png

4. Go to Workflows directory. Here you can see the flow json file.

5. Duplicate the flow file and rename to another filename and new GUID. To generate new GUID use this site https://www.guidgenerator.com/online-guid-generator.aspx

6. Once the file is copied and renamed with new GUID you will have two json flow files like below. Makes sure GUID must be capital case.

image.png

7. Next go to back to parent folder and open customizations.xml file

8. Copy and paste (duplicate) the workflow element. See below. Here the highlighted part is the first flow you created. Below you can see my new workflow node I copied.  change the GUID’s workflowID (Use the GUID you generated), Name and JsonFilename. Please be careful that all are case sensitive. So follow the same pattern as the first workflow where you copied form.

image.png

Save the file.

9. Next open the Solution.xml file

Duplicate the Root Component. Again the id is case sensitive. Use the same flow GUID as above.

image.png

   Save the file

10. Finally Zip all the files.

12. Delete your existing solution. (Please take a backup copy of your solution).

13. Import the new zip solution.

Here is my result

image.png

If you need any help in this please let me know.

Thanks

Leave a comment

Design a site like this with WordPress.com
Get started