3

Is it possible to use the Salesforce API to get an object's internal salesforce id. For example this id appears in the URL for a custom object setup: https://cs15.salesforce.com/ID?setupid=CustomObjects

Update; I used the tooling API with this query to get the object DeveloperName + the internal SF Id:

/services/data/v33.0/tooling/query/?q=SELECT+Id,+DeveloperName,+ExternalName+from+CustomObject
2

The listMetadata call in the Metadata API provides this functionality. I'm not aware of any other API calls that provide this ID value.

  • I was actually able to use the REST tooling API with this query: /services/data/v33.0/tooling/query/?q=SELECT+Id,DeveloperName,ExternalName+FROM+CustomObject – tauren.kristich Jul 2 '15 at 13:25

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.