# Migrate Custom Settings Data

When migrating a large number of Custom Settings from one sandbox to another and then to Production, use this template.

To migrate custom setting data from one Salesforce Org to another, follow the steps below:

1. In the **Create Migration Template** screen, select the checkbox: **Migrate Custom Setting Data.**
2. Give a Name to the **template** and as well as add a **short description**. Choose the **source Salesforce Org** from the drop-down menu and then click on **Select Objects**.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FqyStcrTvB2fxvm3vczNq%2Fimage.png?alt=media&#x26;token=e6ecb0a4-42c5-47ab-a253-7c94d1e3b33a" alt=""><figcaption></figcaption></figure>

3. On the next screen, choose the required objects fields from the list of objects available in the source org. Use the quick search option to further filter the options.
4. Next, click on the **Fetch Fields** button.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FsU15ins6jQZIQJQDj7Gu%2Fimage.png?alt=media&#x26;token=ec3ef813-a8f6-4b37-a0b2-ded99040ae0e" alt=""><figcaption></figcaption></figure>

5. The next screen will fetch the fields available in the selected objects. The non-customizable objects will remain un-highlighted and you won’t be able to select that object.
6. Click on the **Show Fields** to display the list of fields available in the object.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FapDO5drpstoCOReBDED0%2Fimage.png?alt=media&#x26;token=276f6ab0-f6d6-490d-99fb-0bdddec55ebb" alt=""><figcaption></figcaption></figure>

7. Select the desired fields and then click on the **Get Records** button.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FIqNPAzq5EDQNglbVsWxc%2Fimage.png?alt=media&#x26;token=c2919b3a-be3e-4e27-add8-99b352dc19cc" alt=""><figcaption></figcaption></figure>

8. Next, click the **Save** button.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FtAMCWmb5sMuQKZD990y4%2Fimage.png?alt=media&#x26;token=dc4f51e1-56ff-4990-a642-40f07be709df" alt=""><figcaption></figcaption></figure>

9. See your Summary report to validate once again and then click **Save**.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FEO7PyeNemPZmonqDT8Tr%2Fimage.png?alt=media&#x26;token=db4cf0f7-6391-45e3-95c1-3550200c9b96" alt="" width="563"><figcaption></figcaption></figure>

10. Next, you'll be taken to the **Create Template** page. At the bottom of the template screen, click the **Save** button. The template is created successfully and appears on the **Env Provisioning** homepage.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FTp7Z9QYDh3BUCU6rneNe%2Fimage.png?alt=media&#x26;token=4c879215-2219-4433-8eb6-1bc56b17362b" alt=""><figcaption></figcaption></figure>

11. Click on the **Run** button to run the current template on your destination org.
12. Select your **destination org** from the dropdown and enter the **email address(es)** to receive an email notification whenever the template is run.
13. To use the current template as the post-deployment during [CI/CD](https://www.autorabit.com/blog/drive-your-business-faster-why-automated-ci-cd-matters/), select the **Migrate Custom Setting Data** checkbox under the **Post Deployment Steps** section. This is optional.
14. Click **Run**. For a detailed summary report of the operation carried out, please check the **View History** pag&#x65;**.**
