1

REST API Salesforce get company information?

does such endpoint exist? especially, interested in Language Settings https://yadi.sk/i/Ro3btZUS3SDKA2

1
  • I'm not sure I understand your question. Can you elaborate? To use the REST API, you need to create your own endpoint with an APEX Class that responds to the HttpGet/HttpPost request. Commented Feb 7, 2018 at 22:31

1 Answer 1

4

You can query the Organization table to get at that information.

/services/data/v42.0/query?q=SELECT+LanguageLocaleKey+FROM+Organization

Sample output:

{
  "totalSize" : 1,
  "done" : true,
  "records" : [ {
    "attributes" : {
      "type" : "Organization",
      "url" : "/services/data/v42.0/sobjects/Organization/00D..."
    },
    "LanguageLocaleKey" : "en_US"
  } ]
}
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .