# Clone deal across different pipelines using custom code

**URL:** <https://community.hubspot.com/t/clone-deal-across-different-pipelines-using-custom-code/56818>\
**Category:** Data Hub\
**Tags:** javascript\
**Created:** [May 12, 2022, 1:51pm UTC](https://community.hubspot.com/t/clone-deal-across-different-pipelines-using-custom-code/56818 "2022-05-12T13:51:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JonathanS](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonathans/32/17366_2.png) [@JonathanS](https://community.hubspot.com/u/JonathanS)\
**Post date:** [May 12, 2022, 6:08pm UTC](https://community.hubspot.com/t/clone-deal-across-different-pipelines-using-custom-code/56818/2 "2022-05-12T18:08:18Z")

</div>

Hey Chris!

Check out Clone Attack, it does all this out of the box (no custom code required)!

Clone Attack has a workflow action that allows you to choose what associations and properties you want to copy over to the new deal. It also allows you to choose what stage and pipeline the new deal gets created in. You can also incerment date fields by a set amount of time such as +1 month or +17 weeks.

If you want to copy over the original Deal ID all you have to do is create an unformatted number property for deals with the API name: ac\_clone\_attack\_parent\_object\_id

Here is an example of what a Clone Attack workflow looks like:

 ![Screen Shot 2022-05-12 at 12.54.52 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/a/9ad1fe925f1b1db83975b7e5698e89d2d833dc29.png)

Hopefully this helps!

---

_[View the full topic](https://community.hubspot.com/t/clone-deal-across-different-pipelines-using-custom-code/56818)._
