# Config Duplication

## Config Duplication

In this section, you can duplicate the tenant configuration for different tenants.&#x20;

<figure><img src="/files/NEMX0yEpLFjgrrLtXr2q" alt=""><figcaption></figcaption></figure>

The duplication includes:

* Wallets
* Custom event schemas
* Rewards
* Segments
* Achievements
* Campaigns
* Referral Campaigns
* Automations

{% hint style="warning" %}
Config duplication works for the duplication of the configuration with the same environment.

If you want to transfer the configuration between the environments, export the configuration to the individual modules' views.
{% endhint %}

{% hint style="success" %}
**Config duplication how-to**

1. Choose the configuration you want (wallets, Custom event schemas, etc)

![](/files/INaGuzGs3sWAoSJri3vR)

2. Select the tenant you'd like to duplicate the configuration from

![](/files/qzg3EkMHspSiQ1S1YwnE)

3. Select checkboxes next to the Name you'd like to migrate to a different tenant.

![](/files/d3DFTQsJ3flFV9E3kghf)

4. Click **Duplicate selected records** in the upper-right corner.

![](/files/W4X0uNIMBfZzPWNrDhHG)

5. The pop-up window will appear so you can choose **Target tenant -> Duplicate and view the target tenant.**

![](/files/y7HUyKNa7Kr9FNSiaIKh)

6. Once you duplicate, you may get a successful message that the record was duplicated or an **Action required**, so you will need to update information (Achievements, Campaigns)—more in the [Error handling](#error-handling-in-confit-duplication) section.

Example of a successful message:

![](/files/uS5DZwAtr2qfCitXISzD)
{% endhint %}

### Error handling in config duplication

Sometimes you may need to take additional action when duplicating config between tenants.&#x20;

* **Action required - We detected unsupported fields** - The message appears when duplication is not allowed due to unsupported fields. In this case, we tried to duplicate a Wallet that had an existing wallet code in the tenant to which we were attempting to migrate. The error occurred because the wallet code is not editable and must be unique. In summary, the wallet with the existing wallet code cannot be migrated.

<figure><img src="/files/RSN1jURM8Y9OE8K0rv6W" alt="" width="563"><figcaption></figcaption></figure>

* **Action required - Edit the records -** This message typically appears when you duplicate Campaigns or Achievements and Rewards that contain elements with generated IDs. To avoid this issue, ensure that these elements are created in the new tenant before duplicating the configurations. Below is a list of the elements that need to be created prior to duplicating specific configurations:

{% tabs %}
{% tab title="Rewards" %}
In the reward configuration the elements that contain IDs are the following:

* Tiers
* Segments
* Reward Collections
  {% endtab %}

{% tab title="Achievements" %}
In the achievement configuration the elements that contain IDs are the following:

* Custom event schemas
* Segments
* Tiers
* Channels
  {% endtab %}

{% tab title="Campaigns" %}
In the campaigns configuration the elements that contain IDs are the following:

* Achievements
* Custom Event schemas
* Segments
* Tiers
* Channels
* Rewards (as effect)
* Channels
* Collections
  {% endtab %}
  {% endtabs %}

<figure><img src="/files/EfGFnjesk31DlZ0t1PX2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.openloyalty.io/main-features/global-management/config-duplication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
