function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Topher SympsonTopher Sympson 

What's the best way to duplicate a lead and assign to multiple reps? We are looking to have leads select products of interest but if they select multiple (not common) we need to duplicate that lead and assign to each rep that covers the selected products.

We are looking to have leads select products of interest but if they select multiple (not common) we need to duplicate that lead and assign to each rep that covers the selected products in their territory. So we have Leads that select Products assigned to Zip codes assigned to Reps
NagendraNagendra (Salesforce Developers) 
Hi Topher,

There is a good blog post on the above requirement on the success community which will help you further. Please let us know if this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra
 
Topher SympsonTopher Sympson
@Nagendra, thank you for response but this article deals with how to prevent or deal with accidental duplicates. 

We need to be able to assign leads to reps based on location and and product chosen. If the lead has more than one product that are covered by different reps, we want to duplicate the lead (one instance per product) and assign to each product rep.

Ex: Lead chooses product A and B at zip: 23508

There are two Reps that would need the lead since they each cover one product. Rep 1 covers product A and Rep 2 covers product B.

Need to duplicate the lead, Leadcopy-ProdA to assign to Rep1 and Leadcopy-ProdB to assign to Rep 2.

I know there will be some apex involved but would like some ideas on where to start with this.. Workflow? (I'm newer to salesforce.)