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

Possible invalid status error on Lead conversion #13

Open
kyleschmid opened this issue Jul 13, 2018 · 1 comment
Open

Possible invalid status error on Lead conversion #13

kyleschmid opened this issue Jul 13, 2018 · 1 comment

Comments

@kyleschmid
Copy link

The Interactions Processor uses a SOQL query to select any status where IsConverted = true to use as the Lead Status on conversion here: https://github.com/SalesforceFoundation/Interactions-for-Student-Recruitment/blob/master/src/classes/INT_InteractionProcessor.cls#L89. If Lead Record Types are enabled with a default Record Type assigned to a profile, it's possible that this query returns an invalid status value for the assigned Lead Process.

@karamcintyre
Copy link
Collaborator

In order to convert a Lead, it must be at a Lead Status that is marked as a "Converted" value. The code currently queries all Lead Status values and uses the first one that is marked as Converted. The work-around for this issue is to use only one Converted Status that is assigned to all Lead Record Types. If you need to use multiple Converted Statuses assigned to different Lead Record Types, significant code changes may be required.

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

No branches or pull requests

2 participants