• Auto Tunes
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
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
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!!!!!!!!!!!!!