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

1 Answer 1

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.

1
  • 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 Commented Jul 2, 2015 at 13:25

You must log in to answer this question.

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