+ Start a Discussion

Page Layout Name



When using describeLayout to get back ALL layouts, it appears that you get back the ID of each layout:


An individual DescribeLayout consists of the following fields:

buttonSection DescribeButtonSection[]Standard and custom button(s) associated with the specified layout.
detailLayoutSections DescribeLayoutSection[]Layout section(s) for the detail view.
editLayoutSections DescribeLayoutSection[]Layout section(s) for the edit view.
id ID Unique ID of this Layout. For information on IDs, see ID Field Type.
relatedLists RelatedList[]Related list(s) associated with the specified layout.


My question is, how do you get the Name of the page layout?





Any luck with that :(



I thought those DescribeLayout() calls are specific to Web Api and are not avaialble in APEX Controller class?