# Creating a new entry using past entry, but restarting workflow \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/creating-a-new-entry-using-past-entry-but-restarting-workflow-resolved/17831>\
**Category:** Get Help\
**Tags:** gravity-view, duplicate-entries, gravity-flow\
**Created:** [July 10, 2024, 4:33pm UTC](https://community.gravityforms.com/t/creating-a-new-entry-using-past-entry-but-restarting-workflow-resolved/17831 "2024-07-10T16:33:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user65428e5876c73402](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user65428e5876c73402/32/14186_2.png) [@user65428e5876c73402](https://community.gravityforms.com/u/user65428e5876c73402)\
**Post date:** [July 10, 2024, 4:33pm UTC](https://community.gravityforms.com/t/creating-a-new-entry-using-past-entry-but-restarting-workflow-resolved/17831/1 "2024-07-10T16:33:02Z")

</div>

I am building a system and I need a way for users to take an old/existing entry and duplicate it or use it as a starting point for a new submission. I have GravityView and I understand how to implement the ‘Duplicate Entry’ functionality, but there’s a problem. When a new entry is created from this old one, I need it to generate a new, Unique ID for it, allow the user to make changes anywhere needed, and submit it as a new entry. This is important because these duplicated entries need to restart the workflow. When I just duplicated the entry, it pulled over the same unique ID and did not start a new workflow for that entry. Does anyone know how to accomplish this?

---

<div class="post-metadata">

**Author:** ![JamieO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jamieo/32/2521_2.png) [@JamieO](https://community.gravityforms.com/u/JamieO)\
**Post date:** [July 15, 2024, 12:58pm UTC](https://community.gravityforms.com/t/creating-a-new-entry-using-past-entry-but-restarting-workflow-resolved/17831/2 "2024-07-15T12:58:49Z")

</div>

Hi @user65428e5876c73402,

It looks like within the GravityView [duplicate\_entry function](https://codex.gravitykit.com/class_gravity_view ___duplicate___ entry.html#aca07c83c9414591938242ba26ba8d22c) there are a couple of filters and actions that you could use to remove existing unique ID values that should let it generate a new one on creation, and call [Gravity Flow’s Orchestration API to restart the workflow](https://docs.gravityflow.io/article/90-workflow-orchestration-api) for the newly created entry.

Alternatively, if you want to make the duplication process more specific (and measure how often that happens) you could use [Gravity Flow’s Form Connector extension to create a new entry](https://docs.gravityflow.io/article/148-create-an-entry) based on field mapping values from the previous.

In either case, if you need more help with the code snippets I’m sure either GravityView or Flow support team would be able to assist if you send in a request through their respective support forms.

---

<div class="post-metadata">

**Author:** ![rafaehlers](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/rafaehlers/32/2441_2.png) [@rafaehlers](https://community.gravityforms.com/u/rafaehlers)\
**Post date:** [July 15, 2024, 11:47pm UTC](https://community.gravityforms.com/t/creating-a-new-entry-using-past-entry-but-restarting-workflow-resolved/17831/3 "2024-07-15T23:47:33Z")

</div>

For those interested: Ashley contacted us directly at [https://www.gravitykit.com/support/](https://www.gravitykit.com/support/), and we provided this code snippet: [Trigger workflow after duplicating an entry in GravityView · GitHub](https://gist.github.com/rafaehlers/90a5663b6af45fa661f70744e35638f1)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [August 14, 2024, 11:48pm UTC](https://community.gravityforms.com/t/creating-a-new-entry-using-past-entry-but-restarting-workflow-resolved/17831/4 "2024-08-14T23:48:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
