To review lead routing properly you need the configuration itself, not a screenshot of Setup. Every assignment rule entry, every flow that touches the owner, the queues, and the picklist values tested.
Who can export it
Retrieving configuration usually needs the permissions that deploying does. Check with your admin. This is a job for an admin, with their own login.
What to export
AssignmentRules: Lead
Flow and FlowDefinition: all
Queue: all
CustomObject: Lead
GlobalValueSet: all
StandardValueSet: LeadSource, LeadStatus, Industry
That is configuration only. No lead, contact or opportunity record is included. The free scan offers this list ready made as package.xml. The AssignmentRules type is described in the Salesforce Metadata API guide.
<?xml version="1.0" encoding="UTF-8"?>
<!-- What the free Routing Forensics scan reads: routing configuration only, never a lead or contact record. -->
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types><members>Lead</members><name>AssignmentRules</name></types>
<types><members>*</members><name>Flow</name></types>
<types><members>*</members><name>FlowDefinition</name></types>
<types><members>*</members><name>Queue</name></types>
<types><members>Lead</members><name>CustomObject</name></types>
<types><members>*</members><name>GlobalValueSet</name></types>
<types><members>LeadSource</members><members>LeadStatus</members><members>Industry</members><name>StandardValueSet</name></types>
<version>62.0</version>
</Package>
Option 1: nothing to install
At workbench.developerforce.com, log in, then Migration, Retrieve. Choose package.xml as the unpackaged manifest, press Next, then Retrieve, then Download ZIP File. Workbench is a community tool. Check Salesforce's current position on it before you rely on it.
Option 2: the Salesforce CLI
sf org login web --alias ourorg
sf project retrieve start --target-org ourorg --manifest package.xml --target-metadata-dir rf-export
It saves a zip in rf-export.
Then read it
Walk each assignment rule entry in order, and each flow that sets the owner. Look for entries that can never match, entries behind broader ones, and owners who have left. Or drop the zip on the free scan, which reads it in your browser. Nothing is uploaded.
Related: six steps to check Salesforce lead routing and lead routing audit checklist.
What to look for in each part of the zip
The steps are in six steps to check Salesforce lead routing.
| Part | What to check |
|---|---|
| Assignment rule | Entry order, entries that can never match, owners who left |
| Flows | Which ones set the owner, and whether two do |
| Queues | Members, and whether anyone watches them |
| Picklist value sets | Values the entries test, against the values that exist |
Before you hand the zip to anyone
- Open the manifest and confirm it lists configuration types only.
- Check the zip holds no lead, contact or opportunity records.
- Note the date and the org name on the file.
- Keep the first export. A later one shows what changed.
Keep each export beside the counts from the same day. See the lead routing audit checklist.
The free scan checks your export for:
- entries that can never match
- entries hidden behind broader ones
- hard-coded owner Ids
Have it checked every night instead.
Routing Forensics connects as a read-only user and checks this, and the rest of your routing, against your real leads. Three design partners get a free health report on their own CRM, free for 90 days: what is leaking, where, and what it is worth. Apply for a place.
Or check it now. The free scan reads your Salesforce export in your browser. Nothing is uploaded.