Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lead Converter LeadSource picklist only pulls values from 100 most recent leads #52

Open
njjc opened this issue Jan 13, 2012 · 0 comments

Comments

@njjc
Copy link
Contributor

njjc commented Jan 13, 2012

Line 83 in ONEN_CTRL_LeadConverter getSources method uses this query:
[select leadSource from lead where leadSource != null and isConverted = false order by createddate desc, leadsource limit 100]

This means that only the LeadSource from the most recently created 100 leads are available. A Group By clause would include all LeadSources, although I'm not sure if this could hit limit issues:
[select leadSource from lead where leadSource != null and isConverted = false group by leadsource limit 100]

I tried this in Dogwood's instance with >10k unconverted leads and didn't hit any limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant