Zeploy Help ← Back to Zeploy home Open Zeploy

Run a diff

A diff compares the metadata in two connected orgs, such as a sandbox and production, and lists every difference. You use it to decide what to Zeploy. Running a diff takes a fresh snapshot of both orgs, so you always compare current state.

Before you start

Steps

  1. Open Diff from the sidebar, under Metadata.

  2. Choose a Source and a Target. The Source is where the changes are. The Target is where they would go. Either can be sandbox or production. The Target list only offers other connections in the same organization as the Source, so pick the Source first.

    The Diff setup with Acme Sandbox as Source, Acme Production as Target and three types ticked
    The Diff setup with Acme Sandbox as Source, Acme Production as Target and three types ticked

  3. Tick the Metadata to capture. Nothing is ticked at first. Choose the types to compare: Module, Field, Layout, Custom View, Custom Button, Field Update, Function, Workflow Task, Webhook, Blueprint, Email Template, Email Notification, Automation Function and Workflow Rule. Fewer types means a faster diff.

  4. Choose Compute diff. It stays disabled until both orgs and at least one type are chosen. The button reads "Snapshotting…" while Zeploy captures both orgs at the same time. Each side shows its status (pending, running, then complete with a component count).

    The Diff setup while both orgs are being snapshotted
    The Diff setup while both orgs are being snapshotted

  5. Read the summary. When it finishes, the setup collapses into one line: Source → Target, the number of metadata types, "snapshots complete" and the number of changes. Choose Edit setup to change the orgs or types, and Cancel to go back to your results.

  6. Filter the results. The four pills toggle each group and show its count: Only in your source, Different, Only in your target, and Identical. Identical is hidden until you turn it on.

  7. Open a group. Results are grouped by module under Modules, with sections below for org-wide types such as Functions and Webhooks. Groups start collapsed. Choose a row's view changes to see the field-by-field comparison, or view for something that exists on only one side.

    Diff results grouped by module with two rows selected
    Diff results grouped by module with two rows selected

  8. Select what to Zeploy. Tick rows, or tick a group header to select everything selectable in it. When you tick a row that needs other new or changed items, Zeploy ticks those too and tells you how many it added. The bar at the bottom shows how many are selected.

  9. Continue. In the bar at the bottom:

    • Check dependencies lists anything missing for your selection, or says "No dependency issues found for the current selection."
    • Save as change set asks for a name and saves the selection for later. See Change sets.
    • Zeploy to your target takes you to the review screen. If you can't Zeploy directly, this button reads Send for Zeployment. See Review and Zeploy.

Good to know