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
SydneyForceSydneyForce 

Finding where a field is referenced

Is there any way to find out all places where a custom field is referenced?

 

I have a custom field and I want to know if it is referenced in any Visual Force Pages, Apex Classes, Validation rules, or Workflows.

 

I know if I try to delete it, it will show me, but was hoping there was a way that didn't risk me accidently deleting the field.

 

 

Thanks for the help.

Best Answer chosen by Admin (Salesforce Developers) 
imuino2imuino2

If you are using Eclipse IDE, make sure you have all your components, controllers and pages downloaded to your project.

Then press Ctrl + h, this will open a search dialog box, type your field's name do the search.

It will search on your entire project for the word you entered.

 

Please if this or any other reply solves your problem mark it as solved.

Thanks.

Ignacio.

All Answers

Ispita_NavatarIspita_Navatar

Hi,

I think you should utilize metadata API to help you find out the information about a custom field's dependency.

 

Hope this answers you query , if yes please do mark it as a solution.

imuino2imuino2

If you are using Eclipse IDE, make sure you have all your components, controllers and pages downloaded to your project.

Then press Ctrl + h, this will open a search dialog box, type your field's name do the search.

It will search on your entire project for the word you entered.

 

Please if this or any other reply solves your problem mark it as solved.

Thanks.

Ignacio.

This was selected as the best answer
SydneyForceSydneyForce

Thank you Ignacio and Ispita for your help. This was exactly the information I was after.