4

Can someone explain me what is the difference between object name and api name for custom setting. The doc says for object name : Name used when the custom setting is referenced by formula fields, Apex, or the Force.com Web Services API. But when I tried to access a custom setting from an Apex class using the object name it doesn't work I have to use the Api name, what am I understanding/doing wrong ?

Thanks for your help.

  • Hmmmm. I never noticed that it said that. AFAIK, that is incorrect, and you must use the API Name to access the custom setting in Apex or via the API. I don't think you are doing anything wrong, just an error in the documentation. – Chris Duncombe Sep 13 '15 at 11:41
  • Chris, you should post that as an answer so others know this question was completed. – techbusinessman Sep 14 '15 at 4:35
0

In apex you must use the unique api name of custom settings only. Custom settings are similar to custom objects that enables application developers to create custom sets of data.

| improve this answer | |

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.