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

how to get the object wise page layout names using schema class or any other method

I need to get the object wise page layout names. is there any app exchange package or some other way we can find the page layout names object wise using schema class or any other method ?


Thank you in advance 

Khan AnasKhan Anas (Salesforce Developers) 
Hi Jack,

Greetings to you!

It is an Idea ( to Make Page Layout data available to apex via SOQL or Schema class. 

However, you can get layout details from workbench (
  • Login to workbench.
  • Hover over "Info"
  • Select "Metadata Types & Components"
  • Select "Layout" from the drop-down
  • Expand Component folder
  • Here you can see all the layout object-wise.

Also, you can make describe call on the object to get the metadata information. Here's your API call:


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas

Thanks khan,

I need to create a documentation for all the objects and all the layouts assosiated with it. This is lot of manuall process is there a way through which we can extract using excel or something. I dont want to do continous manual process to document them 

Yomipunstur YomipunsturYomipunstur Yomipunstur
The company is infamous for excellent reliability and performance. Preet continues to make a remarkable impact not only in Indian farming community but also in other countries across the world.