Metadata dependencies are the references that connect Salesforce configuration: a layout that places a field, a flow that updates the field, a report that filters on the field, a permission set that grants access to the field. Before changing or deleting any asset, admins need to know what references the asset and what the asset relies on. Missed dependencies are behind many failed deployments, broken automation, and cleanup projects that stall because nobody is sure what is safe to remove.
Why Dependencies Matter
- Changes ripple. Renaming or changing a field can break formulas, flows, code, reports, and integrations that use the field.
- Deletions are blocked or dangerous. Salesforce blocks deleting some referenced assets, and references Salesforce does not track can break silently.
- Deployments need related assets. Deploying an asset to a new org requires the assets the asset depends on.
- Architecture is hard to see. Large orgs have thousands of assets and many kinds of relationships between them.
How to Approach Dependency Analysis
- Look in both directions. Find the assets that reference the starting asset, which a change may break, and the assets the starting asset references, which a deployment may need.
- Follow indirect paths. A field used by a class that is called by a flow is still a dependency of that flow.
- Inspect the evidence. Check the exact element or line where each reference occurs.
- Remember what metadata cannot show. Code that builds names at run time and integrations outside Salesforce do not appear as metadata references.
- Turn the analysis into a plan: a job list of assets to deploy together, or a list of references to remove before a deletion.
How Snapshot Helps
- Impact Analysis Report: maps the dependencies around a starting asset. Assets on the left reference the starting asset, and assets on the right are referenced by the starting asset. Expand Left and Expand Right follow indirect dependencies, Relationship Details shows the reference evidence, Filter Types limits the included types, and Create Job List prepares the asset and the assets the asset depends on for deployment. Export Picture saves the diagram.
- Relationship Matrix Report: shows which assets of one metadata type reference assets of another type in a grid, such as which reports reference which objects, with the matching XML for each reference.
- Managed Packages Report: maps references between installed packages and unpackaged assets.
An empty branch does not prove an asset is unused or safe to delete, because captured metadata and filters limit the findings and references built at run time are not detected.
Metadata Types Involved
-
CustomFieldandCustomObject: the most referenced assets in most orgs. -
ApexClass: code that references objects, fields, labels, and other classes. -
Flow: automation that references objects, fields, actions, and subflows. -
Layout: layouts that reference fields, actions, and related lists.
Most pages in the Metadata Reference list the related types each metadata type references and is referenced by.
Common Questions
How do I find everything that uses a field?
Search the metadata for references to the field across code, automation, layouts, reports, and permissions, then check integrations and code that build field names at run time separately.
Does Salesforce show all dependencies?
Salesforce shows some references, such as where a field is used, and blocks some deletions. That information does not cover every metadata type or every kind of reference.
Which assets need to be deployed together?
The assets a deployed asset references must already exist in the destination or be deployed in the same release. Follow the references the asset depends on to build the list.