# Shape configuration in a duplicated process flow

## Introduction

When a process flow is duplicated, all shapes are copied (so the structure of the flow is replicated entirely) however, some shapes must be reconfigured. Reconfiguration requirements depend on where the process flow is copied:

* As a 'typical' user managing your own company profile, you can duplicate an existing process flow to use as a starting point for a new process flow, within your company. Please see [Duplicating a process flow for the current company profile](#duplicating-a-process-flow-for-the-current-company-profile). &#x20;
* As a Patchworks partner/agency managing multiple company profiles, you can duplicate process flows between these profiles. In this case, there are a few variations to consider - please see [Duplicating a process flow between different company profiles](#duplicating-a-process-flow-between-different-company-profiles).

## Duplicating a process flow for the current company profile

The table below summarises shape reconfiguration requirements when a process flow is duplicated within the current company profile.&#x20;

<table><thead><tr><th>Shape</th><th>Reconfigure?<select><option value="337d619267d1472baa8ac5c2105abad2" label="Full reconfiguration needed" color="blue"></option><option value="7de3668a4fe249c5adde3159b5e245da" label="No reconfiguration needed" color="blue"></option><option value="6defd74682894eb395b4b9cc209d79a0" label="Some reconfiguration needed" color="blue"></option><option value="4db753e1ecda4147a0970623af8d3cca" label="Varies - see notes" color="blue"></option></select></th><th>Notes</th></tr></thead><tbody><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/trigger-shape">Trigger</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing <a href="../../building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-schedule">trigger schedule</a> and/or <a href="../../building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-webhook">webhook</a> settings are duplicated in full. Applies when copying to the same company or to a different company.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/connector-shape">Connection</a></td><td><span data-option="337d619267d1472baa8ac5c2105abad2">Full reconfiguration needed</span></td><td>All settings (including instance and endpoint details) must be reconfigured. If connectors do not exist in the receiving company, they must be <a href="../../../connectors-and-instances/working-with-connectors/installing-a-connector">installed</a> and <a href="../../../connectors-and-instances/working-with-instances/adding-an-instance">instances must be added</a>.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/filter-shape">Filter</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing settings (including instance and endpoint details) are duplicated in full.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/route-shape">Route</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing settings (including instance, endpoint, route names and conditions) are duplicated in full. All 'child' shapes for routes are also copied - standard reconfigure options apply to these.</td></tr><tr><td><a href="../../../developer-hub/custom-scripting">Custom script</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing custom script selections are copied in full.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/manual-payload-shape">Manual payload</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing manual payload content is copied in full.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/assert-shape">Assert payload</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing manual payload content is copied in full.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/map-shape">Map</a> </td><td><span data-option="4db753e1ecda4147a0970623af8d3cca">Varies - see notes</span></td><td>All existing mappings are copied in full. In most cases,  <a href="../../building-process-flows/process-flow-shapes/standard-shapes/map-shape/working-with-field-transformations/available-transform-functions">transformations</a> are also copied however, if a transformation requires a company-specific resource (such as a <a href="../../building-process-flows/process-flow-shapes/standard-shapes/map-shape/working-with-field-transformations/available-transform-functions/other-transform-functions/script-transform-function">script</a> or a <a href="../../cross-reference-lookups/using-a-cross-reference-lookup-in-field-transformations">cross reference lookup</a>), these are not copied. In this case, the map shape displays a warning - you must recreate these resources in the receiving company and reconfigure the associated transformation(s).</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/advanced-shapes/cache/add-to-cache-shape">Add to cache</a></td><td><span data-option="4db753e1ecda4147a0970623af8d3cca">Varies - see notes</span></td><td><p>Copy status depends on the <a href="../../../building-process-flows/process-flow-shapes/advanced-shapes/cache/add-to-cache-shape#show-me-how-the-different-cache-levels-work">cache type</a>:</p><ul><li><code>Company</code>. All existing settings are copied in full.</li><li><code>Flow</code>. The shape is configured with a duplicate version of the original cache - the original cache name is used, appended with an incremental number <code>(1)</code>, <code>(2)</code>, etc (depending how many times you duplicate the flow).</li><li><code>Flow run</code>. Behaviour is the same as detailed above for <code>flow</code> caches.</li></ul></td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/advanced-shapes/cache/load-from-cache-shape">Load from cache</a></td><td><span data-option="4db753e1ecda4147a0970623af8d3cca">Varies - see notes</span></td><td><p>Copy status depends on the cache type:</p><ul><li><code>Company</code> cache. All existing settings are copied in full.</li><li><code>Flow</code> cache. The shape is configured with a duplicate version of the original cache - the original cache name is used, appended with an incremental number <code>(1)</code>, <code>(2)</code>, etc (depending how many times you duplicate the flow).</li><li><code>Flow run</code>. Behaviour is the same as detailed above for <code>flow</code> caches.</li></ul></td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/flow-control-shape">Flow control</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing settings (including instance and endpoint details) are duplicated in full.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/split-shape">Split</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing settings (including instance and endpoint details) are duplicated in full.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/advanced-shapes/de-dupe-shape">De-dupe</a></td><td><span data-option="7de3668a4fe249c5adde3159b5e245da">No reconfiguration needed</span></td><td>Existing settings (including data pool and data path) are duplicated in full.</td></tr></tbody></table>

## Duplicating a process flow between different company profiles

When a process flow is duplicated between different company profiles, most reconfiguration requirements are consistent with those detailed [above](#duplicating-a-process-flow-for-the-current-company-profile). Variations to consider when duplicating between company profiles are summarised below.&#x20;

<table><thead><tr><th>Shape</th><th>Reconfigure?<select><option value="337d619267d1472baa8ac5c2105abad2" label="Full reconfiguration needed" color="blue"></option><option value="7de3668a4fe249c5adde3159b5e245da" label="No reconfiguration needed" color="blue"></option><option value="6defd74682894eb395b4b9cc209d79a0" label="Some reconfiguration needed" color="blue"></option><option value="4db753e1ecda4147a0970623af8d3cca" label="Varies - see notes" color="blue"></option></select></th><th>Notes</th></tr></thead><tbody><tr><td><a href="../../../developer-hub/custom-scripting">Custom script</a></td><td><span data-option="337d619267d1472baa8ac5c2105abad2">Full reconfiguration needed</span></td><td>The required custom script must be <a href="../../../developer-hub/custom-scripting/creating-and-testing-custom-scripts">created and deployed</a> in the receiving company, then the script shape must be reconfigured.  </td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/standard-shapes/map-shape">Map</a> </td><td><span data-option="4db753e1ecda4147a0970623af8d3cca">Varies - see notes</span></td><td>All existing mappings and <a href="../../building-process-flows/process-flow-shapes/standard-shapes/map-shape/working-with-field-transformations/available-transform-functions">transformations</a> are copied. However, if a transformation requires an item which does not exist in the receiving company (for example, a <code>cross reference lookup</code>, a <code>script</code>, or a <code>map</code>) then these items must be added to the company and the transformation(s) must be reconfigured. </td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/advanced-shapes/cache/add-to-cache-shape">Add to cache</a></td><td><span data-option="337d619267d1472baa8ac5c2105abad2">Full reconfiguration needed</span></td><td>The shape must be reconfigured with a new cache.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/advanced-shapes/cache/load-from-cache-shape">Load from cache</a></td><td><span data-option="337d619267d1472baa8ac5c2105abad2">Full reconfiguration needed</span></td><td>The shape must be reconfigured with a new cache.</td></tr><tr><td><a href="../../building-process-flows/process-flow-shapes/advanced-shapes/de-dupe-shape">De-dupe</a></td><td><span data-option="337d619267d1472baa8ac5c2105abad2">Full reconfiguration needed</span></td><td>The shape must be reconfigured with a new data pool and a new data path.</td></tr></tbody></table>
