Is there an easy way to discover where a custom field is referenced in Apex code without attempting to delete it?
E.g. an org with a large code base has objects A, B, and C that all contain a custom field named 'my_custom_field__c'. Is there an easy way to discover references to C.my_custom_field__c?
You can find references to a field (not including inside strings like below) by attempting to delete the field. Does Salesforce expose this functionality some other way?
// Not listed as a reference by Salesforce's delete tool
String s = 'select my_custom_field__c from C';
database.query(s);
API Name
instead of deleting the field. Otherwise we need to know which IDE you prefer. – Adrian Larson♦ Feb 3 '16 at 17:17