function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RytomRytom 

Getting sObject Setup Page Id

Hi, 

I'm trying find a way to get the Id, or what I think is an Id, for a custom object's setup page. I have a custom visualforce page where I want to allow the user to click a link to send them to the custom object's setup page, and to do that, I require what I think is an Id for the sObject in general, shown below highlighted in red.  

User-added image

Does anyone know of a way to query for that Id through Apex or visualforce? 

Thanks, 
Ryan 
Ramu_SFDCRamu_SFDC
Tried to get the objectid earlier but could not. The last hope was describe methods but even from that the max we can get is keyprefix.