Run the free scan

RoutedAll guides

A Flow is overriding your lead assignment rule.

Free check of your Salesforce or HubSpot routing. It runs in your browser.

The assignment rule looks right, the lead still ends up with someone else. When that happens, a flow is usually changing the owner after the rule has decided.

The order Salesforce runs things in

On save, Salesforce runs before-save flows first, then the assignment rule, then after-save flows. Salesforce calls this the order of execution. Check the current order in its developer guide. An after-save record-triggered flow that sets OwnerId then overrides whatever the rule chose.

What to look for in each flow

Check it yourself

In Setup, open Flows and filter to active record-triggered flows on Lead. For each, note whether it runs before or after save. Open every step that updates the triggering record. Then take one misrouted lead and read its owner history:

SELECT OldValue, NewValue, CreatedById, CreatedDate FROM LeadHistory WHERE LeadId = '00Q...' AND Field = 'Owner'

A change at creation can come from the rule or from a flow in the same save. The flows' entry conditions tell you which. A change by another user, or later, points to an integration, a sync or a person.

The free scan checks your export for:

How to read the owner history

Each row of the history query is one owner change. It shows the old value, the new value, who made the change and when. Read it from the oldest row down. The first change is normally the assignment rule. It is made by the user who created the lead, or by the automated process user. A later row by a different user is not a flow in the same save. It is an integration, a sync or a person. Then list the after-save flows on Lead that write OwnerId and match their entry conditions to the lead. Run it on three leads from the same source before you decide.

If the changes come from a marketing tool, see a marketing automation sync overwriting the lead owner.

To decide which one should own the owner field, see assignment rules or Flow.

Questions

How can a flow override a lead assignment rule?

An after-save record-triggered flow that sets the owner runs after the rule. So it has the last word.

How do I tell whether a flow changed the owner?

Read the lead owner history. A flow in the same save shows as an owner change by the creator in the same second as creation.

What else should I check in a routing flow?

Hard-coded owner Ids, owner updates with no fault path, and steps that nothing leads to.

The routing health checklist17 checks, from the rules to the handoff.
Open it

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.

Apply for a free place without leaving this page. We ask for a read-only user, a named owner and a short regular call.

We use this only to reply. Privacy notice.

More guides