I have an object id that is a "parent id" of a specific Attachment object (e.g., b3KD0000119wDTlMAN). I'd like to understand what type this object belongs to, to query for it's details. It can also be a Custom Object. Currently I only work through REST API. Can this be done using REST API?
[SalesForce] How to get SObject type from object Id using REST API
Related Topic
- [SalesForce] REST & Stripe API
- [SalesForce] Unable to do insert/update (upsert) operations using PUT method with out using rest resource class in REST API
- [SalesForce] Add field to sobject using REST api
- [SalesForce] Upload file in Salesforce File object using rest
- [SalesForce] Calling a rest API from one Org to another Org
Best Answer
You can query the parent's type directly in the SOQL:
You'll get a response like this: