function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mike LeachMike Leach 

Migrating Custom Settings with Ant?

Is it possible to migrate Custom Setting objects using the migration toolkit and ant?

 

Calling "describeMetadata" does not itemize a CustomSetting metadata component option.

 

Thanks!

 

-Mike

 

Mark SFMark SF

Custom settings are a subset of custom objects in the Metadata API. See the customSettingsType field in 

http://www.salesforce.com/us/developer/docs/api_meta/index_Left.htm#StartTopic=Content/customobject.htm

Wulf SanojaWulf Sanoja
Mark is correct, it will come out from the source org as an object:

<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <customSettingsType>Hierarchy</customSettingsType>
    <customSettingsVisibility>Protected</customSettingsVisibility>
    <enableFeeds>false</enableFeeds>
    <fields> ......

You can migrate the object as metadata, but you should also use a dataloader to pull the records from the source, modify the csv file as needed for the detination org, and use dataloader to insert as a step in the deployment after loading all objects.