• Adam Mahameed
  • NEWBIE
  • 10 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello,

I would like to retrieve a record using its ID only(not knowing object type) using REST API.
All REST API documentation mentions the method where sobject type is known and added 
Ex:  /services/data/v51.0/sobjects/Customer__x/x01D0000000002RIAQ

I would like to get the object, or even it's object type using its ID only
As this works great without issues via browser "https://cs22.lightning.force.com/x01D0000000002RIAQ"

Is there anyway to achieve it via REST API? if not what could be done to get the sobject type by ID?
Hello,

I would like to retrieve a record using its ID only(not knowing object type) using REST API.
All REST API documentation mentions the method where sobject type is known and added 
Ex:  /services/data/v51.0/sobjects/Customer__x/x01D0000000002RIAQ

I would like to get the object, or even it's object type using its ID only
As this works great without issues via browser "https://cs22.lightning.force.com/x01D0000000002RIAQ"

Is there anyway to achieve it via REST API? if not what could be done to get the sobject type by ID?