Where is this field used?

Instead of clicking through Setup one field at a time, ask once and get every flow, class, formula, layout and sharing rule that touches the field, each one named.

For admins and developers

Short answer

Ask your AI assistant “where is the Status field on Invoice used?”. sf-intelligence looks through your org’s metadata snapshot and lists every component that reads, writes or depends on the field, says how each one was found, and names the kinds of metadata it couldn’t check, so an empty answer isn’t mistaken for “unused”.

A real answer from the demo org

Two fields on Verdant, the demo org: one with a short answer, one used all over the org.

Question

“Where is the Status field on Invoice used?”

2 components reference it.

Next: Ask “what sets Invoice Status to Paid?” to see what PaymentService does with it.

Used by
  • Apex classPaymentServiceApexClass:PaymentService

    Reads and writes Status.

  • Sharing ruleShare Invoices To FinanceSharingRule:Invoice__c.Share_Invoices_To_Finance

    Uses Status in its criteria to decide which invoices Finance can see.

Not checked for this question: roll-up summaries, page layout placement, flow decisions and filters, and tabs and apps. The answer names them, so an empty result there is not mistaken for “unused”.

A plain text search of Apex and Lightning source found nothing extra. The answer calls that weak evidence, because code rarely spells the full Invoice__c.Status__c name.

For developers: the tool call

Your assistant made this call to the sf-intelligence MCP server:

{
  "name": "sfi.find_component_usages",
  "arguments": {
    "componentId": "CustomField:Invoice__c.Status__c"
  }
}
Question

“What depends on the Status field on Project?”

9 components across code, automation, layouts, sharing and analytics.

Next: Pick a new value or rename? Ask “what if I remove the Approved value from Project Status?”

Depends on it
  • Apex trigger → classProjectTrigger › ProjectTriggerHandlerApexClass:ProjectTriggerHandler

    Reads Status every time a Project is saved.

  • Apex batch classIncentiveBatchApexClass:IncentiveBatch

    Reads Status.

  • FlowProject On ApproveFlow:Project_On_Approve

    Starts when Status is Approved.

  • FlowInstallation On CompleteFlow:Installation_On_Complete

    Writes Status.

  • Validation ruleComplete Requires PermitValidationRule:Project__c.Complete_Requires_Permit

    Checks Status.

  • Formula fieldIs CompleteCustomField:Project__c.Is_Complete__c

    Calculated from Status.

  • Page layoutResidential LayoutLayout:Project__c.Residential Layout

    Shows the field.

  • Sharing ruleShare Projects To OpsSharingRule:Project__c.Share_Projects_To_Ops

    Uses Status in its criteria.

  • CRM AnalyticsProject PipelineWaveXmd:Project_Pipeline

    References the field.

The answer also lists the test class that writes Status and the profiles and permission set that grant access to it. Access isn’t usage, so they are kept apart from this list.

Every line says how it was found: stated in the metadata, or read from parsed Apex and formula source.

For developers: the tool call

Your assistant made this call to the sf-intelligence MCP server. sfi.get_impact isn’t in the short default tool list, so it runs through sfi.run_analysis:

{
  "name": "sfi.run_analysis",
  "arguments": {
    "name": "sfi.get_impact",
    "args": {
      "componentId": "CustomField:Project__c.Status__c"
    }
  }
}

Recorded with sf-intelligence 0.8.0 on the built-in demo org. The wording is ours; the facts are the tool’s. More real answers.

Usage first, verdict second

“Where is it used?” and “can I delete it?” sound like the same question, but they aren’t. The first gives you a list. The second weighs that list and adds what wasn’t checked before it says yes or no. Start here when you’re exploring a field you didn’t build. Move to what breaks if I delete it when you’re about to change it.

Access isn’t usage

Profiles and permission sets that grant access to a field are listed separately from the components that use it. A permission set that can see a field doesn’t stop you deleting it. A flow that sets it does.

The quiet references

Some uses never show up in Setup’s own “Where is this used?”: a field shown only on a flow screen, bound only in a Lightning component’s markup, or listed only as a column of a related list on another object’s page layout. sf-intelligence reads all three from the metadata and lists them with the rest. If you upgraded from an older release, run refresh once so they are in your snapshot.

Ask it like this

Use your own object and field names. If a name matches more than one thing, it asks which one you mean.

  • Where is the Status field on Invoice used?
  • What uses Opportunity.Region__c?
  • Which flows and classes touch the Amount field?
  • Is anything still using Contact.Legacy_Status__c?

What it checks, and what it can’t see

Checks

  • Apex classes and triggers, from the parsed source, plus a text search for anything the parser missed
  • Flows that read or set the field, and the conditions that start them
  • Formulas, roll-ups and validation rules
  • Page layouts, sharing rules and analytics that reference it, including related-list columns on other objects’ layouts
  • Flow screens that show or edit it
  • Lightning components and Visualforce, including fields bound in Lightning web component and Aura markup, when your refresh pulled them

Can’t see

  • Field names put together at run time in Apex
  • Reports beyond the ones your refresh pulled
  • Managed packages, integrations and data loads
  • Kinds of metadata your refresh skipped. Each answer names them
For developers: the tools behind this

Your assistant picks these from the plain-language question. You never have to name them.

Questions

How is this different from Salesforce’s “Where is this used?” button?

The button covers many reference types, one field at a time, inside Setup. sf-intelligence answers from a snapshot of the whole org, in plain language, and adds a text search of the source for references the dependency data doesn’t record. It also tells you which kinds of metadata it couldn’t check.

Does it find references inside Apex and formulas?

Yes. It parses Apex and formula source and reports each reference with how it was found. Field names assembled at run time are invisible to any static check, so “nothing found” means “no evidence in the metadata”, not a guarantee.

Does it work on standard fields?

Yes. A normal refresh reads the standard fields of the core objects from your org, so you can ask the same way, for example “where is Account.Industry used?”.