Solution:
Use the below query to fetch all the page layouts in the org from Developer console by making 'Use Tooling Api' checkbox to true.
select id,name,EntityDefinitionId,TableEnumOrId from Layout
To query layouts associated with an object use the query below
select id,name,EntityDefinitionId,TableEnumOrId from Layout where TableEnumOrId='Account'
where TableEnumOrId is the enum (for example, Account) or ID of the object this layout is on.
No comments:
Post a Comment