function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC developer999SFDC developer999 

how to find unused fields in custom objects

Hi ALL,
 I have to find all unused fields in custom object to delete them. Please tell me a fast way to find them.
Also, how to find unused custom controllers and controller extemsions?

Thanks so much for your help,

Tina
AG_SFDCAG_SFDC
Hi Tina,

For unused fields go to workbench, Select all fields in that particular object and export a report using Bulk CSV option. If no data is in any of the fields then their is a good chance that those fields are not used anywhere.

Also once you get the fields without any data, Make a project in Eclipse(Force.com IDE) and try to search that field in the custom code like classes, VF Pages, SControls, Componets etc. and make sure that field is not refenced anywhere

Please let me know it this helped you.

Thanks,
AG
SFDC developer999SFDC developer999
Thanks so much for you quick reply AG.
This helps a lot. I appreciate very much. Tina
SFDC developer999SFDC developer999
Hi AG,
  How to use Bulk CSV in workbench to export fields and find out which field has data or not?
kisshore.rajasankarkisshore.rajasankar
Hi Tina - I know this is almost an year old, but do you have a solution for this? If not, you could use the AppExchange app called "Field Trip" for this purpose.