A lead created by a form handler, sync or API takes the creating user as owner. Until routing runs. If routing never runs, it stays there, and no rep ever sees it.
Why routing did not run
- The assignment rule was not applied. For a lead created through the API, it depends on which API the integration uses. And on a setting in its request. Check how each integration creates leads.
- A routing tool paused or errored on these records.
- A flow's entry conditions left out this source.
Check it yourself
SELECT Id, Name FROM User WHERE IsActive = true AND UserType = 'Standard' ORDER BY Name
Pick out your integration and API users. Then count their leads created before today:
SELECT COUNT() FROM Lead WHERE IsConverted = false AND OwnerId IN ('005...') AND CreatedDate = LAST_N_DAYS:30 AND CreatedDate < TODAY
The free scan checks your export for:
- a missing active assignment rule,
- more than one system setting the Lead owner
Decide from the age
A lead owned by an integration user for a few minutes is normal. Routing is about to run. One that is still there a day later was never routed.
Group the old ones by source to find the entry point.
SELECT LeadSource, COUNT(Id) n FROM Lead WHERE IsConverted = false AND OwnerId IN ('005...') AND CreatedDate = LAST_N_DAYS:30 AND CreatedDate < TODAY GROUP BY LeadSource
Replace the Ids with your integration users. One source with most of the leads is the integration to fix.
A worked example
A made-up result: 25 old leads owned by the integration user. 22 have the source Partner Portal.
The portal creates leads through an API call that does not ask for the assignment rule. Fix the call first. Then move the 25 old leads to their owners with a mass transfer.
Steps
- List your integration and API users.
- Count their leads older than a day.
- Group those by source.
- Fix the top source at its entry point.
- Move the old leads, then recount a week later.
See also: HubSpot Salesforce sync changing the lead owner and Account Engagement prospects not assigned.
Related: imported or API leads not assigned in Salesforce and route LinkedIn Lead Gen Form leads to an owner.
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.