Where is this field used?

The everyday admin question that means clicking through Setup one field at a time - or asking an AI agent once and getting every Flow, Apex class, layout, report, and validation rule that touches it, grounded in your real metadata.

Short answer: Ask sf-intelligence "where is Account.Industry__c used?" and it returns every component that references the field - Flows, Apex, layouts, validation rules, reports - from a dependency graph plus a source grep of your retrieved metadata, each reference labelled with its confidence. One question replaces a field-by-field crawl through Setup.

How it works

When you name a field, the router resolves it to a canonical ID (and asks a clarifying question if several match), then walks the incoming edges in the dependency graph and grep-scans the source for any reference the graph doesn't already model:

claude - sf-intelligence
 where is the Industry field on Account used?
▸ 7 components reference CustomField:Account.Industry__c:
  ValidationRule · Flow · ApexClass(2) · Layout · Report · FieldSet
  provenance offline_snapshot · edges: declared, parsed, heuristic

What it catches

Reference typeConfidence
Layouts, field sets, validation rules, record typesdeclared - Salesforce states it directly
Flows, formulas, Apex (parsed source)parsed - from AST/XML parsing
Dynamic SOQL / reflective Apex mentionsheuristic - grep-level, spot-check it

The tools behind it

  • find_field_anywhere - lexical search for a field across every retrieved component.
  • field_360 - the full profile of a field: definition, references, what fires when it changes.
  • find_component_usages - the universal "where is X used" dispatcher for any component, not just fields.

Honest limits

Usage answers are only as complete as your last refresh and the metadata you retrieved. Dynamic field access is invisible to static analysis, so it labels heuristic matches and never reports a confident "unused" it can't back up. See how it's tested.

Frequently asked

How do I find where a Salesforce field is used?

Salesforce's built-in Where is this used? button covers many reference types but misses some (formula text, certain Apex references) and only works one field at a time in Setup. sf-intelligence answers the question from a dependency graph plus a source grep of the retrieved metadata, so you can ask 'where is Account.Industry__c used?' in plain language and get Flows, Apex, layouts, validation rules, reports, and more in one answer.

Does it find field references inside Apex and formulas?

Yes - it parses Apex and formula source and reports references with a confidence label. Static analysis can't see dynamic SOQL or reflective field access, so those edges are marked heuristic and it tells you plainly that 'no references found' means 'no static evidence', not a guarantee the field is unused.

Can it tell me if a field is safe to delete?

That's the related question - see what breaks if you delete a field. Usage tells you what references a field; the delete simulation weighs those references and adds coverage caveats before giving a verdict.

Ask once, not field by field.

Register the read-only MCP server and ask where anything is used.