2

I want to know how to retrieve Custom Settings from my Sandbox into a local sfdx project. I know command force:source:retrieve but I do not know what parameter to use for retrieving Custom Settings. I have authenticated my Sandbox and tried

sfdx force:source:retrieve -u MySandbox -m CustomSettings

It returned "No result found".

I have tried using Org browser metadata from VS Code, but I could not find anything related to custom settings.

How do I retrieve Custom Settings from my Sandbox?

5

They're the same as a CustomObject. You can retrieve one via the terminal:

sfdx force:source:retrieve -m CustomObject:CustomSettingName__c

In the Org Browser, they'll also be listed under Custom Objects.

  • Thanks! I did not know that they are Custom Object too. I looked on Custom Object on my sfdx project and the custom settings are there. – user2015 Mar 10 '20 at 12:55
1

Modify your package.xml from your manifest folder to include the below code

<types>
        <members>CustomSetting__c</members>
        <name>CustomObject</name>
</types>

Then right click on package.xml and select Retreive Source in Manifest from Org

  • Thanks for your answer! I thought CustomSetting__c was an object name. Apparently I have to change it to my custom settings name. – user2015 Mar 10 '20 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.