Save impact
Inspect save automation
sfd impact Accountsfd impact Account.Industry --op updatesfd impact Opportunity.StageName --op delete --inactive --jsonsfd impact Account --freshsfd impact Invoice__c.Status__c --graph mermaidAn object target lists save-time automation. Add a field to look for reads,
writes and references to that field. The daemon resolves API names
case-insensitively through Salesforce metadata and uses describe for compound
field components such as BillingCity. Active components are the default.
--inactive includes inactive components and uses their latest versions.
--json returns the daemon response with the structured result under
result, including evidence, coverage, warnings and the cache timestamp.
Component dependency graph
--graph mermaid prints a Mermaid flowchart and --graph dot prints a
Graphviz digraph. Each replaces the save-impact report on stdout. Use one
format at a time and omit --json.
An arrow from A to B means A references B. Automation arrows into the target
show the phase and evidence, including possible matches. --op filters
phase arrows by DML operation. Dependency API arrows in both hops are retained
because Salesforce supplies no operation for those references. A component
referenced by a second-hop arrow stays visible even if --op filters out its
phase arrow to the target.
Process Builder and Flow nodes use version IDs when available. IDs also keep
components with identical names distinct. Labels include the namespace when
available.
The first hop combines the normal impact findings and Dependency API rows. For a standard field, first-hop Dependency API results are possible Apex references to its object. Object targets start with automation and formula findings. A second hop shows Apex classes, Apex triggers, Flows, Lightning web component bundles and Aura bundles that reference first-hop components. The command queries up to 1,000 distinct IDs in batches of 200. The graph marks omitted IDs, unavailable reads and truncation when a query reaches 2,000 rows or Salesforce signals more results. As with the save-impact report, optional read warnings go to stderr.
Order of execution
The phase numbers follow the Salesforce save sequence. A separate sequence
covers deletes. With no --op, the report shows saves followed by applicable
delete phases. An insert or update filter keeps the corresponding save phases.
See Salesforce’s Apex Developer Guide.
Flows with an explicit trigger order appear in ascending order. Other flows, Apex triggers and Process Builder processes have no guaranteed relative order. Apex class references appear separately because a reference carries no execution-order information. Scheduled and asynchronous flow paths are shown under post-commit. Parent roll-ups cause a separate parent save. Formula fields are calculated on read and are shown at the end of the save view.
A before-save flow can change a field before a validation rule sees it. For example, a flow that changes Status from Closed to Open can prevent a validation rule for the Closed value from firing. A blocking duplicate rule stops subsequent steps. A workflow field update may fire before-update and after-update triggers once more, without repeating custom validation, flows or duplicate rules.
Evidence and coverage
Rmeans read,Wmeans write and·means reference with unknown direction. A?marks possible evidence, such as a trigger body match.- Flow metadata, validation formulas, same-object custom formulas and parent roll-up metadata can confirm a field access. Apex references to a custom field come from Salesforce’s Dependency API. For a standard field, Apex results are possible references based on the object.
- Cross-object coverage is partial. Custom formula and flow candidates can come from dependency rows. For custom field targets, the command also checks related custom children for before-delete flows. Standard formula fields, dynamic Apex references, call graphs, subflow and Apex side effects, and undeployed local changes are outside this view.
- The Tooling Dependency API is a Salesforce beta. Its 2,000-row limit is
reported as truncated when reached or when Salesforce signals more results.
For custom fields,
impactalso queries specifically for Lightning web component and Aura bundles because Salesforce can omit LWC references from the general query. JSON and graph output preserve bundle names as Salesforce reports them. An Aura bundle name can include a suffix, such asMyAuraBundle.2. MetadataComponentDependency - Managed trigger bodies and some managed or standard metadata can be hidden. Listed-only entries preserve the known components with possible confidence. A failed optional read adds a warning and leaves the rest of the report available. Text output sends warnings to stderr and still exits successfully.
- Agentforce actions appear after the Apex references, with their invocation
targets and any topics. JSON includes the action label, namespace and Tooling
evidence in
agentforce. The lookup follows one hop from Apex classes and flows already identified by impact, including dependency-backed autolaunched flows. It counts other invocation types in a coverage note. Agent membership is outside this view. coverage.agentforceisokafter a complete lookup,skippedwhen impact finds no Apex classes or flows, andunavailablewhen the org lacks the Agentforce Tooling object. Other metadata read failures produce warnings andpartialcoverage. The lookup reads up to 2,000 Apex and Flow actions and reportstruncatedwhen it reaches the limit or Salesforce signals more rows. Actions and topics found so far remain in the report.- The report marks uninspected phases and components, including duplicate, assignment, auto-response, workflow, escalation and entitlement rules, approvals and reports. Platform-event and scheduled flows are also outside the record-triggered flow view.
Caching
Impact results and Process Builder metadata are cached in the daemon for ten
minutes per org alias and API version. The same target result serves different
--op values. Active-only and inactive-inclusive results have separate
entries. Use --fresh to clear the selected alias. Reloads and metadata cache
invalidations clear the affected entries. Cached results include Agentforce
actions and topics. The two graph formats reuse the
cached impact collection and the same second-hop reads.
Reports with warnings from temporary failures such as timeouts, network
errors or exhausted request-limit retries are returned for that call and
refetched on the next one.