Create Salesforce Scheduled Class / Trigger to Lookup Contact/Lead of Custom Object based on Email.
I have a custom "Enquiry" object in Salesforce for all my web leads.
Need a class/trigger built to do the following on a 1 minute schedule
1. Check if Enquiry has a contact that exists in Salesforce based on email or email 2, Update Lookup field with ID, else.
2. Check if Enquiry has a lead that exists in Salesforce based on email or email 2, Update Lookup field with ID, else.
3. Create new lead with Primary information in Enquiry (First Name, Last Name, Email, Mobile) and link ID to Lookup field with ID
Code to be supplied with in a working dev Salesforce environment to show it is working.
Please submit the string "170622" at the top of your submission, I don't like automated bots. Show you have read the brief.
I am looking for a long term relationship for repeat Salesforce work.
Class should handle only new Enquiries after the record has been created and committed to the database in an efficient list