1

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.

1

1 Answer 1

-1

There are two ways:-

  1. Using Metadata API:- You can get page layouts by Metadata API by defining the Object and Page layout name in package.xml

  2. 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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .