Leapwork provides the functionality to copy or duplicate the flows/sub-flows. Here are descriptions of both the copy and duplicate features:
Copy
The copy option is used to make a copy of a flow/sub-flow. This feature will copy only the flow/sub-flow, leaving references to the original locators (images, web/desktop elements, sub-flows, files). Copy uses a mechanism called a shallow copy that simply creates a reference to the flow. If any amendment is made to the flow, it reflects into all its references. The flow can be pasted into the same project and across projects.
Duplicate
This feature duplicates the flow/sub-flow, all locators (images, web/desktop elements, sub-flows, files, etc.). The duplicate feature uses a mechanism called “deep copy”. The new flow/sub-flow has no reference back to its origin and is not impacted by any updates made to the original flow. The flow can be pasted into the same project and across projects.
Here is an example of how to copy and duplicate flows in Leapwork.
-
Right Click on the flow or sub-flow to copy:
-
Now, paste the flow or sub-flow to the required folder
-
Choose the option to Copy or Duplicate as per your requirements.

For any clarification, please contact our Priority Support.
Comments
2 comments
This article basically says the same as the dialog that pops up when you choose to copy. I spoke with support and below is my understanding of the difference. Explaining when it's best to use one over the other was way more helpful. Here's my understanding:
I'm in a situation where I want to expand extensively an existing flow. I want to keep my original flow working until I'm done with the extensions and then delete the original flow replacing it with the new.
So I DUPLICATE the original flow, but when I change thing in the duplicate flow the same things change in the original???
Please sign in to leave a comment.