Questions tagged [lead-conversion]

When you convert a lead, Salesforce creates a new account, contact, and, optionally, an opportunity using the information from the lead. Any campaign members are moved to the new contact and the lead becomes read only.

Filter by
Sorted by
Tagged with
2
votes
0answers
69 views

conversions problem

We have installed the complete code in every page of our site, before closing the body tag, we have also installed the conversion code on our website, the code retrieves the information, but we do not ...
2
votes
0answers
112 views

Lightning UI - error after automatic lead conversion by trigger

Having a trigger to check if tasks/activities of a lead, to match a conditions then we do auto-convert the lead. On Salesforce classic, everything just go fine as expected. Unfortunately, Lightning ...
2
votes
0answers
459 views

ORA-20025 converting lead to contact

I am trying to convert lead to contact and I get this error: ORA-20025 common.exception.SfdcSqlException` ORA-06512: at "SNEEZY.CACCESS", line 2399` ORA-06512: at "SNEEZY.CACCESS", line 585` ORA-...
2
votes
3answers
702 views

Non-technical: Can an existing customer be a lead?

This question is non-technical. It's more based on the principles of CRM and how SalesForce implements those principles: When talking about new customers and the sales funnel it's quite clear: Lead -...
2
votes
2answers
229 views

is there a way to convert a lead to an account with a particular recordtype programatically

I am programmatically convert a lead into Accounts and contacts. Is there a way we can convert a lead to an account of particular recordtype? I cant seem to find anything on this on the docs. I do ...
2
votes
1answer
1k views

Convert Lead to Custom Object, Opportunity and Contact

I have a requirement to convert lead(a specific record type) to these 3 objects. (A Custom Object, an Opportunity and a Contact) The Custom Object will be the parent of the Opportunity and the Contact....
2
votes
0answers
401 views

Insufficient Privileges During Lead Convert - Trigger Doing Owner Change

I have a basic trigger that defaults the owner for accounts and contacts upon lead conversion. After turing on triggers and validations for lead conversions this is mostly working, but in some cases ...
2
votes
0answers
474 views

Mass Lead Conversion Error

I have written the common lead conversion snippets within for loop and I got this Error. Yes following code creates Account and Contacts properly but it doesnt create any Opportunity. ERROR : ...
2
votes
0answers
988 views

Duplicate account IDs when using Database.convertLead()?

Does Database.convertLead() allow conversion of multiple leads to the same account at once? That seems like it should be no problem, but I'm getting strange errors in my unit testing. I wrote a lead ...
1
vote
2answers
2k views

Lead Status Converted Value to Contact Status

We have a converted Lead Status value "Sales Accepted", which we have in a custom Contact Status field on the Contact level as well. When a Lead is converted, where do the Converted values get mapped ...
1
vote
1answer
429 views

Prevention of Lead conversion as it has a time based action queued

I have a process builder which fires on lead creation. It creates a time based action, which says that a chatter reminder will be posted after 7 days if no activity on the lead has been made. So if ...
1
vote
2answers
465 views

Access isconverted field of Lead from Event

I have a trigger on Event where I'm querying the isconverted field of Lead but I'm getting this error: System.QueryException: No such column 'isconverted' on entity 'Name' I tried below queries: ...
1
vote
2answers
166 views

Trigger on Lead - Variable does not exist: isConverted

Trying to write a trigger that runs on lead conversion after update, I get the error above on trigger.oldMap. What am I missing? public with sharing class LeadTriggerHandler extends TriggerHandler{ ...
1
vote
1answer
660 views

Why is my Lead Source not mapping over to Account & giving me an error?

When trying to convert a Lead with a Lead Source set, It will not convert and I receive the following error: Error: Your lead is missing a field mapping for the Account.Lead Source field. For help, ...
1
vote
1answer
129 views

unable to get code coverage for my apex trigger

Hey i am new to salesforce. I write an apex trigger in lead.Whenever any lead is converted type picklist(standard field) in opportunity object has to updated with new-business.I had successfully wrote ...
1
vote
1answer
6k views

Trigger to update converted Lead's Opportunity with information from converted Contact

I'm having an issue with a trigger, and can't seem to figure it out, so I'm hoping someone can help me. Basically, I wrote a trigger that runs when a lead is converted. It is supposed to populate a ...
1
vote
2answers
742 views

Query task in Lead conversion.?

When i am querying lead in Lead conversion trigger..My task query is returning null even there are task records associated with Lead object..I even try to hard-code query still its returning empty ...
1
vote
2answers
254 views

How to convert a Lead into a contact using salesforce IOS mobile

I am builiding an IOS mobile app ( native app ) which creates a Lead using the salesforce mobile SDK (IOS). I could not find an API to convert a lead to a contact like how you can do in Apex. Any ...
1
vote
1answer
1k views

Convert Lead to Opportunity via data loader

I'd like to convert leads to existing/new accounts with opportunities using data loader. How do I go about it? Also, which all fields do I need to map in data loader?
1
vote
1answer
259 views

validation falure

I am getting following error. java.sql.SQLException: ORA-20025: ORA-06512: at "DOPEY.SACCESS", line 1295 ORA-06512: at "DOPEY.CACCESS", line 2438 ORA-06512: at "DOPEY.CACCESS", line 2369 ORA-06512: ...
1
vote
1answer
384 views

Using @InvocableMethod Apex Class how can I AutoConvertLead, but using Existing Contact ID from a custom field within same Lead record

Can anyone kindly help with amending the below code so that it can convert the Lead to an existing Contact (and contact's Account) by using the specified Existing Contact ID which would be stored on ...
1
vote
1answer
437 views

Standard field values not updating on setting up Converted Account ID while Lead Conversion

I have designed a functionality to override the Lead Conversion standard functionality. The functionality works as follows : There is one custom setting which contains information of Lead field ...
1
vote
1answer
933 views

Passing Product from Lead to Opportunity on Lead Conversion

My company is interested in having Salesforce automatically create Opportunity line items upon lead conversion, based on data on the lead. What I have set up are lookup fields on the lead for Product,...
1
vote
2answers
762 views

Converting lead doesn't prompt for target object's required fields

I believe my issue is best explained through an example: I have a Lead that is being converted to an Opportunity. My Opportunity object has a custom required field that is not present in Leads ...
1
vote
2answers
2k views

Why does an opportunity is not shown for the converted lead?

I have an interesting issue where an opportunity that was closed of a converted lead, does not show on the relevant report. A lead was created The lead was converted to an Account + Contact The ...
1
vote
1answer
48 views

In which object, lead conversion field mappings stores in Salesforce

I have a requirement where I want to do the Lead conversion field mapping using apex code instead of doing it manually.
1
vote
1answer
2k views

How can I set the Account Record Type for Lead conversion?

I have a Lead that is automatically converted using a trigger. The default Record Type for this profile is Person Account and it works as expected. Now I need to explicitly set the Account Record Type ...
1
vote
1answer
593 views

Odd error when trying to convert leads

Trying to convert a lead and get the generic error What's odd is that if I created a clone of this lead, assign it to the same person and then try to convert the clone, it works. That means ...
1
vote
1answer
721 views

Change the account owner when a lead gets converted to account, contact and opp

I want to achieve a scenario where as soon as a lead is converted to an account I want to change the account owner, one thing here is that as soon as the lead gets converted to the account the round ...
1
vote
1answer
474 views

Should we use MasterLabel or API name for Lead Statuses while converting a Lead

I was working an issue reported while converting a lead on a customer org which was throwing an Invalid Status error which i had asked about in this thread. Referring to code in documentation here ...
1
vote
1answer
47 views

Change lookup relation parent on convert

I may have my terminology off as far as who the parent in the relationship is. However what I am trying to accomplish is take a custom object email_campagin__c attached to a lead and switch it over to ...
1
vote
1answer
360 views

custom lead fields not mapping values after using lead conversion class

I created a javascript button that will convert the current lead to a contact based on conditions that I've sent. It works as expected. The problem I have is the custom fields from the lead are not ...
1
vote
1answer
362 views

Conversion Error - Leads without the company field populated cannot be converted to a Business Account

I have Person Account enabled in my org. The default Account Record Type for my profile is set to Person Account. Whenever I try to Convert leads, I'm getting this error message... Leads without ...
1
vote
2answers
1k views

Attach existing opportunity to lead during lead conversion through Apex

I am trying to convert a lead and then attach an existing opportunity on it. Below is my sample piece of code. Public static void convertLeadUponDealApproval(String LeadRec,Id OpptyId){ Id ...
1
vote
1answer
66 views

Why can't I map Account Number on Lead Conversion

On the Map Lead Fields screen I don't see the option to set the Account Number. This seems like it should be doable... Am I missing something? The only work around I can think of is to set a ...
1
vote
1answer
1k views

In Apex Trigger distinguish between contact created by lead conversion and new contact

Note: I am a fairly new apex developer so I apologize if this is a basic question. I'm working on an apex trigger which will prevent a contact from being created when there is an existing lead with ...
1
vote
1answer
119 views

Why doesn't lead converted date match to anything?

I'm creating some reports from SalesForce in a standalone reporting tool, I'm looking at how long it takes for a lead to be converted to an account and then for an opportunity to be attached. I ...
1
vote
1answer
84 views

Why is this test giving 0% coverage?

I have a simple trigger that I'm trying to deploy, but am getting a 0% code coverage error when validating. I had to modify the test slightly to get around another problem (changed "static testMethod ...
1
vote
1answer
1k views

Lead Conversion Trigger Issue (After Update/After Insert)

I've spent the last week on this now, and it's gone from an annoyance to a horrific pain. We have a process wherein leads can either be (1) created with a unique identifier and then are auto-...
1
vote
3answers
1k views

Insert Leads with active Assignment Rule through Dataloader

I want to insert 5000 leads using Data Loader, but I'm don't know how to active "Assign using active assignment rule" on insert. Is there a way to this on insert? Thanks,
1
vote
2answers
8k views

ERROR: cannot reference converted lead

Am trying to Update Leads. When Lead converted flag is true. Lead Status is Contacted. I have to update all the contacted leads to Converted. Am Getting this error on the data loader: ERROR: ...
1
vote
2answers
3k views

Account Required Field Missing on Lead Conversion

I have Account object with custom mandatory fields. While converting a Lead when I choose a Create New Account option getting an error as Insert Failed: Required Field Missing. As a beginner I don't ...
1
vote
2answers
653 views

Convert Lead trigger only works sometimes

I have two triggers on the Lead object. One (before insert) checks to see if the Lead matches any existing Contacts (through a custom email object) and the other (after insert, after update) converts ...
1
vote
2answers
953 views

API creation of Opportunity and Primary Campaign

1) When Lead is converted to an Opportunity, we want to ensure all Campaigns from Lead flow to Opportunity as Campaign Influence records. This happens when User manually does the Lead Conversion ...
1
vote
5answers
3k views

Report to show Converted Leads sales - from opptys NOT created on the convert event

I discovered a bug/flow When my users convert leads, they do not always create an oppty, nor do they want to. It so happens, that once this oppty is created, if it wasn't created during the ...
1
vote
1answer
38 views

How to identify between new or existing account record in trigger when a lead is converted? [closed]

During the lead conversion process inside the trigger, I want to identify whether the converted account is new or existing. I need to identify when users select whether to Create New or Choose ...
1
vote
1answer
220 views

LWC (Lightning Web Component) Convert Lead Via Apex and return Account Id

I would like to call a custom APEX Class that converts a lead. I have successfully been able to create the LWC, Call the Apex Class, & Convert the lead. I am having trouble returning the new ...
1
vote
1answer
29 views

Salescloud and Lead Conversion

I need assistance with a certain process I need to automate around Sales Cloud and Lead conversion. Our current implementation automates the creation (and synchronization) of a Quote right after an ...
1
vote
1answer
296 views

Validation Rule Error when converting a lead

I have two picklist fields with dependencies in place. One is Lead Status and One is Status Subcategory. I have a VR so that forces the user to complete the Status Subcategory if the lead status is ...
1
vote
1answer
287 views

Validation rule on lead conversion. preventing specific users ownership of records

I'm trying to prevent a specific user from owning Opportunity/account/contact records upon reassignment on lead conversion. Here is what i got so far and I cant seem to get it to work... Any kind of ...

1 2
3
4 5
8