How could I query page layouts and its fields for the specified object?
Is it possible to query?
Example : for account object : Account layout and field in the layout.
How could I query page layouts and its fields for the specified object?
Is it possible to query?
Example : for account object : Account layout and field in the layout.
There are two ways:-
Using Metadata API:- You can get page layouts by Metadata API by defining the Object and Page layout name in package.xml
Using Tooling API:- Tooling API has object named "Layout" which can be queried.
There is no way to query the Layouts by SOQL in Apex.