You need to sign in to do that
Don't have an account?

convert lead in to multiple opportunities
Hi i am working on lead conversion.I need to override the standard 'Convert' button given by salesforce with VisualForce page and write apex code for it. I need help in the following
1. There are many fields(Standard/Custom) in lead that need to be mapped to Account,Contact and Opportunity custom fields.
2. I have a multi select picklist field 'product' on Lead screen which has values x,y,z
If two products (or three) is selected on Lead Screen then 2 Opportunity records should be created one with product as 'X' and another as 'Y'.
Please help me achieve this functionality.Thanks in Advance.
1. There are many fields(Standard/Custom) in lead that need to be mapped to Account,Contact and Opportunity custom fields.
2. I have a multi select picklist field 'product' on Lead screen which has values x,y,z
If two products (or three) is selected on Lead Screen then 2 Opportunity records should be created one with product as 'X' and another as 'Y'.
Please help me achieve this functionality.Thanks in Advance.
Refer the following code which may give you some idea.
As for the visualforce help, You can refer my github repository which has code similar to what you need.
Let me know if it works.
Best,
Nithesh