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

Convering Leads into Contacts based on email domains..

I have Marketo pushing in Leads into Salesforce, and there are about 7000 leads.  

I want to only conver Leads with the Leads Status = Open, into contacts based on their email domain.  

So for example if a Lead has an email, and I have an Account which has contacts emails as;  I want to convert to a contact into that specific Account.

Is that possible to do?
Shashikant SharmaShashikant Sharma
Hi ,

You can not show hide Convert button but develop a trigger to validate the applicabiltiy of contact to convert the lead based on above rule.

Your Trigger will be on Before Update on Lead

You can see trigger development info form :

Lead Convert triger example:

Although you mentioned that youwant to validate according to contact email but In case you could use current user's email who is converting you could try to use a validation rule.