You need to sign in to do that
Don't have an account?
Hm_invi
query or filter fields of page layouts.
Hi,
There are almost 500 fields in Accounts and Iam trying to delete the fields of a couple of page layouts and fields not used in any page layout (and any custom logic).
It is not practical to check each field if it is being used in any page layout.
Using this tooling API SOQL
Is there any way for me to retrieve the fields of these page layouts.
I have built a vf page and a controller from here:
https://developer.salesforce.com/forums/?id=906F0000000DD9aIAG
but i get 'Collection size exceeds maximum size of 1000 error'.
and our org dont use LWC so is there any other not so complicated approach for this issue.
Thanks for your time.
May the Force be with you!!!!!!!!!!!!!
There are almost 500 fields in Accounts and Iam trying to delete the fields of a couple of page layouts and fields not used in any page layout (and any custom logic).
It is not practical to check each field if it is being used in any page layout.
Using this tooling API SOQL
SELECT Layout.Name, Layout.TableEnumOrId FROM ProfileLayout WHERE Layout.TableEnumOrId = 'Account'i was able to retrieve the page layout names.
Is there any way for me to retrieve the fields of these page layouts.
I have built a vf page and a controller from here:
https://developer.salesforce.com/forums/?id=906F0000000DD9aIAG
but i get 'Collection size exceeds maximum size of 1000 error'.
and our org dont use LWC so is there any other not so complicated approach for this issue.
Thanks for your time.
May the Force be with you!!!!!!!!!!!!!
You can refer below link to extract field of layout
https://salesforcecodex.com/salesforce/find-list-of-all-fields-on-page-layout/
Hope above information helps, Please mark as Best Answer so that it can help others in the future.
Thanks!