Register interest

Guide

A Flow is overriding your lead assignment rule.

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. So an after-save record-triggered flow that sets OwnerId 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, and 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'

An owner change in the same second the lead was created, by the user who created it, is almost always automation, not a person.

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. Register interest and you will be first to get a free health report: what is leaking, where, and what it is worth.

Register interest

More guides