+ Start a Discussion
ColbridgeColbridge 

Migrating / deploying custom settings

Hi, 

How would you deploy/migrate custom settings from one org to another?

Thanks. 
Best Answer chosen by Colbridge
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

The custom settings should be available as a custom object on the object's list. You can deploy the custom Settings using changeset or any other migration tool using the CustomObject metadata.

If you are going with the changeset then you can search for the custom setting name under the Custom Object component.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri

All Answers

ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

The custom settings should be available as a custom object on the object's list. You can deploy the custom Settings using changeset or any other migration tool using the CustomObject metadata.

If you are going with the changeset then you can search for the custom setting name under the Custom Object component.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
This was selected as the best answer
sachinarorasfsachinarorasf
Hi Colbridge,

You can deploy custom setting from one org to another or by Using Ant Migration 

Try the below code :
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>CustomSetting1__c</members>
        <name>CustomObject</name>
    </types>
   <version>36.0</version>
</Package>
Please follow the below link :

https://salesforce.stackexchange.com/questions/191177/build-an-xml-with-a-custom-settings-for-migration-in-salesforce-org-to-org

I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too.

Thanks and Regards,
Sachin Arora
www.sachinsf.com
ColbridgeColbridge
Hi Shirisha and Sachin,

Thanks for your replies.

I think I want to try the package.xml deploy method from VS Code - But the problem is how would I identify items as Custom Settings? In my Source Org, in my local VS Code project, under > objects, all I see is custom object api names ending with __c and metadata types ending with __mdt

Thanks.
ColbridgeColbridge
Hi again - Shirisha and Sachin!

I was able to identify the custom settings. Thanks to the tip provided by Shirisha - I created a temporary outbound change set just to identify the custom settings. Then used the package.xml provided by Sachin and successfully deployed one custom setting from VS Code. I could not use change set deployment method because my Source and Target Orgs are not related. 

Even though I used both of your answers and needed both for my solution, I can only mark one as best answer. I think I should mark Shirisha's answer as the best one as it had the crucial tip I needed to identify the custom settings from the list of objects :) - Ideally one should use both of these combinations to get the job done.

Thanks. 
Dana BreauxDana Breaux
Hello, I want to know that how can I deploy/migrate custom settings from one org to another and I am glad I have found your post by mistake. Actually, I was searching for the top us companies skills students need in a post-pandemic world online and found my question answer on this https://www.optnation.com/blog/top-us-companies-skills-students-need-in-a-post-pandemic-world/ website. When I was searching for it on google search, I have found your post. I am very much thankful to you for sharing this information with us.