+ Start a Discussion
Antonino_CupiAntonino_Cupi 

How understand if layout is standard or custom

Hi all,

how can I retrieve from the Metadata the information that a specific layout is a standard or a custom layout?

Thanks
Alain CabonAlain Cabon
Hi Antonio,

In Classics or Lightning ?

In Classics (metadata: Layout and ApexPage): there are the "standard" layouts and the Visualforce pages ("custom layout"). When you use a Visualforce page, you will see /apex/ in the URL ( /apex/VFPname). A standard layout can contains static Visualforce pages. These static Visualforce pages into a standard layout disappear when you edit the standard layout.

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_layouts.htm
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_pages.htm

In Lightning (metadata: Layout and FlexiPage​), you can compose the page with components. 

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_flexipage.htm