You need to sign in to do that
Don't have an account?
Buddy Zapata
Converting a Lead - auto-assign existing Account instead of creating new one
Apparently converting a Lead is a very prolific action, it creates an Opportunity, an Account, a Contact, and a Task within the Account.
Ideally I'd like to:
- have it ONLY create the Opportunity/Task
- assign an existing account by ID and NOT create a new Account at all
- not create a new Contact at all
Is Process Builder my only hope here? And if so how would that be done? Thanks
You need to baseline the criteria for whic you can identify whether an account record exist or not.Then write a custom lead conversion code and then use the account if it exist.
Cheers!!!
But how am I supposed to accomplish that exactly. What is a "custom lead conversion code"?
This is for the standard Salesforce web UI https://(instance).salesforce.com, so not Apex or anything like that.
You need to create an instance of Leadconvert and then set the account Id.
For Instance :
Database.leadConvert objLeadToConvert = new Database.LeadConvert();
objLeadToConvert.setAccountId(<ACCOUNT_ID>);
objLeadToConvert.setLeadId(<LEAD_ID>);
This piece of code will be called on quickaction.
Cheers!!!
Again, I'm in the Salesforce UI, so not Apex / Lightning / Canvas / Visualforce.
Hi Buddy Zapata,
This code needs to be added in apex.
Cheers!!!