1

REST API Salesforce get company information?

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

  • 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. – PatMcClellan__c Feb 7 '18 at 22:31
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"
  } ]
}
| 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.