You need to sign in to do that
Don't have an account?
Ben Kingsley 8
Duplicate Detection
I need help on adding some code so it looks for the first letter of the first name and not the full first name. Below is my code. Any help would be appreciated.
IF(RecordTypeName=='BCIS - Consumer' || RecordTypeName =='Consumer'|| RecordTypeName == 'Wealth'){
BCISDupProspectList = [SELECT Id, Name, OwnerID,Primary_Phone__c,Secondary_Phone__c,email__c,Owner.Name,Owner.Email FROM Prospect__c WHERE first_name__c = :Prospect.First_Name__c AND
Last_Name__c = :Prospect.Last_Name__c and RecordType.Name <> 'BCIS - Consumer Prospect'
AND ((Email__c = :Prospect.Email__c and Email__c <> null) OR
(Primary_Phone__c = :Prospect.Primary_Phone__c and Primary_Phone__c <> null) OR
(Secondary_Phone__c = :Prospect.Secondary_Phone__c and Secondary_Phone__c <> null))];
IF(RecordTypeName=='BCIS - Consumer' || RecordTypeName =='Consumer'|| RecordTypeName == 'Wealth'){
BCISDupProspectList = [SELECT Id, Name, OwnerID,Primary_Phone__c,Secondary_Phone__c,email__c,Owner.Name,Owner.Email FROM Prospect__c WHERE first_name__c = :Prospect.First_Name__c AND
Last_Name__c = :Prospect.Last_Name__c and RecordType.Name <> 'BCIS - Consumer Prospect'
AND ((Email__c = :Prospect.Email__c and Email__c <> null) OR
(Primary_Phone__c = :Prospect.Primary_Phone__c and Primary_Phone__c <> null) OR
(Secondary_Phone__c = :Prospect.Secondary_Phone__c and Secondary_Phone__c <> null))];
I wish this sample could be any help for your requirement:
So your Code will be like below after modifying :
Note: Mark it as Solution if it helps.
All Answers
I wish this sample could be any help for your requirement:
So your Code will be like below after modifying :
Note: Mark it as Solution if it helps.