Skip to main content

#Leads0 discussing

How would you...?

 

I have a spreadsheet containing contacts, leads, and people new to our ecosystem whom I need to add to a campaign.  On the spreadsheet there is no indication of who is a lead, contact or new.  There IS an email address for most people.  When I tried to bulk load, my leads hit some duplicate rules.  

 

If they exist, I want to still add the existing member to the campaign.  I do not want to create leads if a contact exists, and I want to create a lead if NONE exist.  

 

How would you tackle?  Is there a way I am not thinking of that I can take the spreadsheet and determine before loading who exists, and if so as what type of object record?

2 comments
  1. Jan 27, 6:50 PM

    The dummy field workaround works but it's a lot of manual steps for what should be a simple matching operation. The bigger problem is that Salesforce treats matching as exact-or-fail. 

     

    I'd recommend using a semantic matching tool. Sharing the one I'm building:

    everyrow.io/merge if you'd like to test it out free the next time you run into this.  Upload your spreadsheet and your Salesforce export, and the tool returns a cleaned file ready for Dataloader with the IDs filled in. It understands that "Bob Smith, VP Sales at Acme" and "Robert Smith, Sales VP, Acme Corporation" are likely the same person. And then for ambiguous cases like two different people with the same name, it will flag these for review. 

0/9000

Just posting this update here because I could not find a recent definitive answer online to this... 

 

You currently cannot add the standard '

Gender Identity

' picklist field to a web to lead form - not even if you have the right API version and it is accessible to your Profile on the Lead and Contact objects.  

SF Support reported back to me today: 

 

"

Upon checking this internally with my team and tried the same in my demo org.

found that Gender Identity & Pronoun Fields(Standard fields) aren't supported yet for Web to Leads. It is working as designed & that's why this field is not listed in the "Available Fields" list in Setup-->Web-to-Lead when you are generating HTML for a new web-to-lead form."

 

The work-around suggested is the same one you need to implement for Birthdate for Web to Lead - create a custom field, and then a Flow to update the standard field when your custom field gets populated. Then you can map the standard field to the standard Contact field in your Lead mapping setup.  

 

Idea posted here , please upvote!

 

:) 

 

#Web-to-lead  #Leads

0/9000

Greetings All.

I am working on a Hand On Challange (Create and Convert Leads) & this error popped up:

 "ExampleTrigger: execution of AfterInsert caused by: System.EmailException: SendEmail failed. 

First exception on row 0; first error: INVALID_ID_FIELD, ID is invalid or you do not have access to the record.: [toAddresses, Your email address] Class.EmailManager.sendMail: line 13, column 1 Trigger.ExampleTrigger: line 5, column 1". 

I don't understand the issue. Please help?

 

Greetings All.I am working on a Hand On Challange (Create and Convert Leads) & this error popped up:

 

#Leads  #Trailhead Challenges

8 comments
0/9000

Hi! I'm curious how other people manage multiple emails for leads? We have people filling out forms with different emails, same name and it is triggering our duplication rules thus a new lead isn't being created, which I want as I don't want multiple leads for the same person. However, how do I add all these various emails into one lead record?

 

 

 

#Sales Cloud

2 answers
  1. Mar 1, 2024, 7:07 AM

    Here are approache to manage multiple emails for leads in Salesforce, preventing duplicate leads and ensuring all contact information is captured:

    Utilize Duplicate Management Rules and Merge Function

    1. Adjust Duplicate Rules: Modify your existing duplicate rules to allow leads with the same name but different emails.
    2. Merge Duplicates: After multiple leads are created with the same name and different emails, use the Merge Leads feature. This allows you to combine these leads into a single record, preserving all associated information like emails.
    3. Workflow Automation: Consider creating a workflow that automatically merges duplicate leads based on specific criteria (e.g., name and email combination).

0/9000

Hi,

 

I have a queue with two users, everytime a lead from X country is created, it is assined for this queue.

 

How can I reassign it to the queue's user A and next created lead to user B ?

 

#Salesforce Admin  #Saleforce Administrator  #Leads  #Lead Assignment Rules

3 answers
0/9000
Hello, I'm trying to build a lead scoring formula based on age of a lead

I've created the below formula but am getting the error:  Incorrect parameter type for function 'IF()'. Expected Text, received Number. (I've tried this as a CASE formula and got a syntax error highlighting <=)

IF(Lead_Age__c,<=5 and >=0,"10",

IF(Lead_Age__c,<=10 and >=6,"6",

IF(Lead_Age__c,<=35 and >=11,"9",

IF(Lead_Age__c,<=60 and >=36,"4",

IF(Lead_Age__c,<=90 and >=61,"2",

IF(Lead_Age__c,>=91,"8",

null))))))

Basically the formula is meant to say for the first line for instance if the lead age is between (or equal) 0-5 then the score will be 10.

Not sure why an IF formula can't produce a number so any help would be appreciated.

Thanks,
3 answers
  1. Sep 8, 2021, 3:25 AM

    Hi  Wayne Gladman,

    Try this formula,

    IF((Lead_Age__c <= 5 && Lead_Age__c>=0), 10,  IF( (Lead_Age__c <= 10  && Lead_Age__c >=6) , 6,  IF((Lead_Age__c <= 35 && Lead_Age__c>= 11), 9,  IF((Lead_Age__c <=60 && Lead_Age__c >= 36), 4,  IF((Lead_Age__c <= 90 && Lead_Age__c >= 61), 2,  IF(Lead_Age__c >=91, 8, null) ) ) ) ) )

    If this helps,please mark it as best answer

     

    Thanks.
0/9000

We have an ongoing external email campaign that directs potential leads to our website.  If they engage, they are considered a lead and are sent to SF.  But, some already exist in our system so are being caught by the lead duplication rules, and the lead is not captured in SF.   Is there a way that I can have the system recognize this as a duplicate and add the new Campaign to the old lead, and the status reset to new?   BTW, we only use salescloud. #Sales Cloud #Campaign Members #Leads

5 answers
  1. Nov 2, 2023, 6:07 PM

    Hi @Anne Kuczynski,

     

    I see that at the moment your duplicate rule alerts and/or blocks the creation of the lead, so it doesn't come through. Are you able to identify via a certain field, all the leads that are part of this email campaign? If that's the case, you could create another duplicate rule (using the same matching rule) that does not alert nor block of the duplicate - it will only create a "Duplicate Record Set" Record with its child "Duplicate Record Item" records. You will need to create a filter in this duplicate rule so that it only applies to the relevant leads (and you will also have to filter the existing duplicate rule so that it doesn't apply to these leads, as you want these to pass through).

     

    At the same time, you need to create a record-triggered flow on the "Duplicate Record Set" object, and in the Condition set that "Duplicate Rule ID" is equal to the ID of the new Duplicate Rule that you just created before, so that the flow only triggers for this case. In the flow you would then have to do a Get records to obtain the "Duplicate Record Items" for this Duplicate Record Set, so that you can figure out the Ids of the Leads (one will be the old Lead and one will be the new one, you can check that by CreatedDate. Once you have identified the old Lead Id, you can do the flow actions to assign the current campaign to this lead and reset the status to new, and finally add a delete element to delete the new Lead that just got created, so that only the old lead remains.

     

    Hope this helps, let me know if you need clarification!

0/9000
2 answers
  1. Dec 27, 2023, 2:25 PM

    Sorry, 

     

    I think I didn't express myself well. The validation rule is necessary, but this massage in front of the real message was not supposed to be appearing. I'd like to remove it and let only the message for de user. 

     

    The massage:

     

    "ConvertedLead failed. First exeception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION. Erro de validação em contato:"

     

    if not possible to remove the message. I'd like to understand why.

     

    Thanks for now

0/9000
6 answers
  1. Prabhat Mishra (Salesforce) Forum Ambassador
    Nov 13, 2023, 12:27 PM

    Hi @Arnaud Fournier,

     

    Please access Data Manager > Connections > SFDC_LOCAL > Edit Objects. You will be able to check if the Created Date is selected or not.Hi , Please access Data Manager > Connections > SFDC_LOCAL > Edit Objects. You will be able to check if the Created Date is selected or not.

0/9000

***reposting from another TB group to see if it gets better answers here**

 

Summary of Issue

  • I received an Apex trigger error email when trying to create a lead as a Guest User from my Experience Cloud Site using the OOTB 'Lead Form' component in the Experience Builder.

EMAIL ERROR MESSAGE

npsp.TDTM_Lead : npsp.TDTM_Lead: execution of BeforeInsert caused by: line 33, column 5: Variable does not exist: TDTM_Config_API

 

Troubleshooting steps already taken

Additional context/details

  • I have implemented a 'Create a Lead' Form component in my Experience Cloud Site for Unauthenticated Guest Users. I mapped the required field and some other fields within the component from the Experience Builder.
  • I configured all the necessary S&S / permissions and other setup steps needed, then published the site.
  • We have NPSP installed.
  • The Experience Cloud Site with the Lead From is for Guest Users to create Leads.

#Experience Cloud #Forms #Leads #NPSP #Triggers #NPSP TDTM #TDTM

2 answers
  1. Sep 1, 2023, 11:45 PM

    TDTM_Lead is actually an Apex trigger.  But you are correct, there are no out-of-the-box TDTM handlers for the Lead object.  The TDTM_Config_API class is not a TDTM handler itself, it's more of a dispatcher to the specific TDTM handlers.

     

    It sure feels like an object permissions error, even though you say you've set all the correct permissions.  You should not need to set permissions on the Apex triggers / classes since those are running in system context already.

0/9000