Get Object Metadata Examples
AVAILABLE API VERSION |
---|
API v56.0 and later |
Locale available in API v60.0 and later |
Picklist values available in API v65.0 and later |
This example fetches the metadata for the Account object.
The previous query returns this response.
This example gets account labels in French.
The previous query returns this response.
This example gets all picklist values for the Account object for a specified record type ID.
The previous query returns this response.
This example gets all picklist values for two record type IDs and filtered by a field name.
The previous query returns this response.
This example fetches all the child relationships for the Account object.
The previous query returns this response.
This example returns the child relationships for accounts and cases. It also runs an objectInfo
subquery to fetch the queryable
field on childRelationships
.
The previous query returns this response.