doDev – Admin & Dev Toolkit for Salesforce

How to find where a field is used in Salesforce

Short answer: Salesforce’s Where is this used? button on a custom field lists many references, but not all of them – Apex that builds field names as text, reports, list views and several other places are easy to miss. doDev, a free Chrome extension, searches the places you choose and shows each reference with the line that matches.

Where Account.DoDev_Picklist__c is used in doDev: Apex classes and tests with the matching lines highlighted

Find the references with doDev

  1. Install doDev and open it from the toolbar while you are logged into Salesforce.
  2. Go to Find → Where Is It Used.
  3. Choose Field and type it, e.g. Account.DoDev_Picklist__c. It also works for objects, profiles, roles, groups, permission sets, Apex classes, labels, custom permissions, record types or any text.
  4. In What to search (on the right), check the places – Apex, triggers, Visualforce, Lightning components, formulas, page layouts, list views, email templates, custom metadata and more. The slower ones, such as flows, validation rules and reports, can be added too.
  5. Click Find references.

You get:

Before you delete a field


More how-to guides: all guides · doDev help