Skip to content

A working reference for changing a CRM org safely: fields, flows, permissions, sandboxes and what each change touches.

Sections

AboutEditorial policyRSS

Salesforce dependency analysis: what it misses on a delete

Salesforce dependency analysis: what tools find, miss and what an admin checks by hand before deleting a custom field.

Filed
Reading time
5 min
Terms defined
5
Sources
3

Change impact

  • Deleting a field that dependency analysis calls unused can still break reports, string-built Apex and external integrations that no metadata scan sees.
  • Deleting a field removes its entries from layouts, permission sets and field-level security, so those need a redeploy if the delete is reversed.
  • A deleted custom field can be restored for about 15 days, after which the field and its data are erased.
  • Export the field data before the delete, even when the field looks empty, because restore after the window is not possible.
  • A zero-dependency result is a reason to start the manual checks, not to skip them.

Salesforce dependency analysis lists the metadata that references a custom field, and a clean result only means the metadata layer found nothing. Before deleting, run the scan, then check reports, string-built Apex, integrations and usage data by hand, because that is where scans go quiet.

What is Salesforce dependency analysis?

Salesforce dependency analysis is a scan of org metadata that lists every formula, flow, validation rule, layout and Apex class referencing a given field, object or picklist value.

It is not a usage check. Dependency analysis says what points at a field. Usage says whether anyone writes to it. A field can have zero dependencies and a million populated records, or ten dependencies and no data.

A concrete case: Opportunity.Discount_Tier__c is read by a validation rule, a record-triggered flow and one page layout. Nothing else in metadata mentions it. Yet a nightly middleware job writes to it through the API, and a finance dashboard filters on it. The scan reports three dependencies. The real number is five.

When the field is deleted, the three metadata references fail or are blocked, the two invisible ones break silently, and field-level security and layout entries disappear with it.

What does the native check find and miss?

Admin guides on this topic agree on a consistent pattern. The "Where is this used?" button lists formulas, layouts and Apex that reference a custom field, and it exists only for custom fields. The dependency API can be queried in code, but it carries record limits and leaves out reports. Reports need a separate search. Apex that builds a field name from a string hides the reference from any parser. Integrations that write to a field appear in no list at all.

I have not re-tested each of these behaviours on a single named release for this entry, so confirm them on your org's current release before relying on them.

How do tools compare on Salesforce dependency analysis coverage?

The honest answer is that the public pages in the competitor material do not publish field-level coverage tables, so any comparison has to be a set of questions you put to each vendor. This is the grid worth filling in during an evaluation.

SurfaceMetadata scan usually findsCheck by hand
Validation rules and formulasYesConfirm cross-object formulas
FlowsUsuallyOpen each flow that touches the object
Page layoutsYesCheck record types and dynamic forms
Reports and dashboardsOften notSearch report contents
Apex with string-built namesNoSearch the codebase for the API name and its pieces
Managed packagesPartlyAsk the package publisher
Integrations and BI toolsNoReview field maps and API logs

On vendor claims: HighRev says its Org Intelligence Agent documents users, objects, fields, flows, integrations and dependencies, per its archived homepage capture read on 2026-10-15; I have not tested how deep that goes for a single field. Hutte describes a git-based tool with a visual interface and an MCP capability on its company blog, read 2026-09-29, and the Salesforce Developer Experience page, read 2026-10-15, describes a CLI and DevOps Center toolchain. Neither page documents a field-delete dependency check, so ask.

FlowSprite AI lists dependency analysis in its professional tier next to deploy preview and live SOQL queries. The argument for it is placement, not a longer coverage list. A delete drafted by an AI client lands as a pull request in the customer's own repository, is tested in a sandbox first, and waits for a human to approve. The dependency result, the diff and the approval sit in one place. That is a stronger position than a standalone button, because the evidence travels with the change.

What should you check by hand after Salesforce dependency analysis returns nothing?

Treat a zero result as the start of the checklist. Run these in order:

  1. Search report and dashboard contents for the field label and API name, including filters and groupings.
  2. Search the Apex codebase for the API name, and for fragments such as the stem before __c that code could join to a suffix.
  3. Ask owners of middleware, ETL jobs and BI tools to confirm no field map includes it, then check API user login history for writers.
  4. Review permission sets, permission set groups and profiles for field-level security entries that deploys will need to clean up.
  5. Check email templates, list views, report types and flow screens for the field.
  6. Ask managed package publishers whether their components read it.
  7. Export the field data, even if the field looks empty.

The point of step 3 is that the platform cannot see outside itself. An integration that writes to Discount_Tier__c is invisible to every scan, so the only reliable evidence is the people and logs on the other side.

How does field usage data fit the delete decision?

Usage data turns "nothing references it" into "nobody needs it". Count populated records and find the last date a value was written. A field untouched for a year with no dependencies is a strong candidate. A field written yesterday is not, whatever the scan says.

If the tool you use runs live SOQL queries, a count of non-null values and a maximum of LastModifiedDate on records where the field is set give you both numbers in minutes. Treat those counts as a snapshot: a quarterly process can still need the field next month.

How do you roll back a deleted field?

Within about 15 days, a deleted custom field can be restored from the deleted-fields list, and its data returns with it. After that window the field and its data are erased. Restoring the field does not necessarily restore every layout and permission entry, so keep the pre-delete metadata in version control and redeploy those entries from it.

That is why the export in step 7 matters. A redeploy from Git recreates the definition, not the values. The sandbox-first PR-gated deployment rollback checklist covers what a redeploy cannot restore, and the Salesforce deploy preview guide shows how to compare the pull request with what the sandbox actually did.

Salesforce dependency analysis as a gate, not a verdict

Use Salesforce dependency analysis to stop deletes that are plainly unsafe, and use the manual checks to catch the ones that only look safe. The same discipline applies to renames, which have their own failure modes, described in rename a picklist value: find every dependency first.

When the tool and the checklist agree, the delete is ready for a human to approve. When they disagree, the checklist wins.

Sources

  1. HighRev homepage, Org Intelligence Agent (archived capture) — HighRev (2026-10-15)
  2. Hutte homepage and company blog — Hutte (2026-09-29)
  3. Salesforce Developer Experience — Salesforce Developer Experience (2026-10-15)

Maeve Okonjo

Data model contributor. Writes about fields, objects and picklists, and about finding everything that depends on one before it is touched.