What breaks if I change this?

Before you turn off a flow, delete a field, change a class or deploy a release, find out what depends on it. Get a clear verdict and the list behind it, from your org’s real metadata.

For admins, architects and release managers

Short answer

Ask your AI assistant “what breaks if I deactivate this flow?” or “is this deployment risky?”. sf-intelligence traces what depends on each change and answers blocking, review first or go, with every affected component named. Anything it couldn’t fully check is marked “review”, never “safe”.

A real answer from the demo org

Two change questions asked of Verdant, the demo org: turning off one flow, then a small release that deletes a field and changes a flow.

Question

“What breaks if I deactivate the Project On Approve flow?”

Blocking it stops 3 things the org relies on.

Next: Decide what should create Permits instead, then deactivate the flow.

Stops happening
  • ObjectPermitCustomObject:Permit__c

    New Permit records stop being created when a Project is approved.

  • FieldPermit › ProjectCustomField:Permit__c.Project__c

    No longer set by the flow.

  • FieldPermit › StatusCustomField:Permit__c.Status__c

    No longer set by the flow.

Email templates were not in the snapshot, so the answer says it can’t confirm there is nothing else, instead of calling the change safe.

Apex that starts the flow by name is invisible to this check, so the answer tells you to look for code callers too.

For developers: the tool call

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

{
  "name": "sfi.run_analysis",
  "arguments": {
    "name": "sfi.what_if_deactivate_flow",
    "args": {
      "flowId": "Flow:Project_On_Approve"
    }
  }
}
Question

“Is this deployment risky? It deletes Invoice Amount and changes the Project On Approve flow.”

No-go 1 blocking change, 1 to review.

Next: Move PaymentService, the Balance formula and the roll-up off Amount, then run the review again.

Blocking
  • Field · deletedInvoice › AmountCustomField:Invoice__c.Amount__c

    Deleting it breaks what depends on it.

    • Apex classPaymentServiceApexClass:PaymentService
    • Formula fieldInvoice BalanceCustomField:Invoice__c.Balance__c
    • Roll-up summaryProject › Total InvoicedCustomField:Project__c.Total_Invoiced__c
Review first
  • Flow · changedProject On ApproveFlow:Project_On_Approve

    No dependents found, but Lightning pages, Lightning components and quick actions were not in the snapshot, so it can’t call this safe.

A change it cannot fully check is marked “review”, never “safe”.

No overlapping field writes or save loops on Invoice or Project involve these changes.

You can hand it a package.xml, a destructiveChanges.xml or the file list from a git diff instead of naming components.

For developers: the tool call

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

{
  "name": "sfi.run_analysis",
  "arguments": {
    "name": "sfi.review_change",
    "args": {
      "components": [
        {
          "componentId": "CustomField:Invoice__c.Amount__c",
          "changeKind": "deleted"
        },
        {
          "componentId": "Flow:Project_On_Approve",
          "changeKind": "modified"
        }
      ]
    }
  }
}

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.

Why “blocking” and not just a list

A list of dependents still leaves you to decide what matters. The answer sorts them: blocking means something will fail or stop working, review first means it couldn’t confirm the change is safe, and go means it checked everything the change touches and found nothing. In the first answer above, turning off Project On Approve would stop Permit records being created when a Project is approved, so it’s blocking.

Releases, not just single changes

New in sf-intelligence 0.4.0, a deployment review takes the change set the way you already have it and returns go, review first or no-go with the reasons. It also checks the objects the release touches for automation that writes the same field twice or sets itself off again.

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.

  • What breaks if I deactivate the Project On Approve flow?
  • Is this deployment risky? Here’s my package.xml.
  • What happens if I make Permit Approved Date required?
  • What breaks if I remove the Approved value from Project Status?
  • What tests should I run for the classes I changed?

What it checks, and what it can’t see

Checks

  • Fields, objects, flows, classes and triggers and everything that depends on them
  • A whole release from a package.xml, a destructiveChanges.xml or a git diff file list
  • Overlapping automation: two things writing the same field, or a save that sets itself off again
  • Which Apex tests exercise the classes you changed
  • What-if changes: required fields, picklist values, field types, method signatures

Can’t see

  • Code that calls things by a name built at run time
  • Managed packages, integrations and data loads
  • Kinds of metadata your refresh didn’t pull. A change touching them can’t be called safe
  • Whether a test that runs your change actually checks it
For developers: the tools behind this

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

Questions

What can I hand it for a deployment review?

A package.xml, a destructiveChanges.xml, or the list of changed files from a git diff. You can also just name the components in your question.

When does it say “go”?

Only when nothing in the change set is blocked or left unchecked. A component it can’t find, or a kind of metadata it couldn’t check, keeps the answer at “review first” at best.

Can it count the records a change would affect?

Not from the snapshot, which holds your org’s setup, not its records. With the optional read-only live mode turned on, some answers add record counts, for example how many existing records have a field empty before you make it required.