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.

learn more… | top users | synonyms (1)

1
vote
1answer
11 views

Set custom Opportunity fields in convertLead()

I'm fairly new to Apex/Visualforce and I'm a bit stuck here. I have a custom Visualforce page and Apex controller for a Lead Convert button in which a new Opportunity is converted, and I'm trying to ...
0
votes
1answer
11 views

Creating a 'Scorecard' on the Accounts Page

I'm trying to create a basic 'scorecard' section that will display the following information on the Accounts Page: Value Open Opportunities Valued Closed Won Opportunities Number Leads Total Number ...
0
votes
0answers
17 views

Lead Conversion Campaign Member Issue

I have a trigger on Lead Conversion which validates and allows lead conversion only if the Lead is associated with a Campaign. Heres a snippet of the same: for(Lead led : trigger.new){ if( ...
0
votes
1answer
66 views

How do you convert a Lead via the REST API?

Am a bit new to Salesforce, integrating with our existing systems which uses Python, so I'm making use of the simple_salesforce module. It's working great, except I cannot figure out how you convert a ...
2
votes
0answers
41 views

Converted lead results in 'ConvertedAccountId' being NULL?

I am responsible for an integration with our customer's Salesforce systems using the REST API. I have been operating under the assumption that whenever a Lead is converted, then it will have the ...
2
votes
0answers
44 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 : ...
0
votes
0answers
44 views

Activity id: cannot specify id in an insert call - Need solution

I have got the "Lead conversion" written in a custom manner (visuallforce and controller), when converting a Lead to an Account, I am getting Activity id: cannot specify id in an insert call error ...
2
votes
2answers
37 views

Pause Lead Conversion Process for Validating Account Fields

Is there anyway to pause the Lead conversion process until some generated Account fields being validated? This is my road block When a user creates an account from standard layout we are generating ...
1
vote
2answers
57 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
1answer
39 views

Populating Account record from Lead in an Account before insert trigger

There are lot of discussions on Lead conversion. I'd just need to know is there any possibility to track whether the Account is being created upon a Lead conversion and if collecting information of ...
2
votes
2answers
83 views

How to convert a Lead to Contact automatically?

I'm looking for help. I'm new to Salesforce, learning to become an Admin. We are developing a Web to Lead form. We'd like to automatically change anyone who submits the WTL form directly to a ...
1
vote
0answers
79 views

Validation rule fires - not sure why

I have a validation rule on an accounts' field AND (ISBLANK(Bill_To_Account__c),ISPICKVAL( Owner.UserType ,"PowerPartner")) That checks for the 'Bill_To_account__c' to have a value, if the ...
4
votes
3answers
622 views

What Happens When A Lead Is Converted?

I'm new to SalesForce. What happens when the Convert button on the Lead Details page is clicked? I've read that The lead is marked as 'closed'. An Account object is created. An Opportunity tied to ...
1
vote
1answer
68 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 ...
0
votes
1answer
30 views

Native Salesforce lead-to-client process to handle custom lead object

I am a developer so sorry if I am asking an obvious question (not familiar with the business side in Salesforce). We have a custom lead object with custom lead statuses (designed after what our ...
1
vote
1answer
23 views

Are leads in lookup relationships still kept after conversion?

If I have a lookup field with a lead in and later convert that lead, what happens to the value of the field? I read somewhere that converted leads were only visible in reports.
2
votes
1answer
126 views

Disable task trigger on lead conversion

I wrote triggers that will be fired after inserting/updating/deleting task and event. What the triggers do is HTTP call out. When a lead is convert, tasks and events will be copied too, so the ...
1
vote
2answers
50 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 ...
2
votes
1answer
310 views

Populate Lookup field on Opportunity upon Lead Conversion

I am trying to populate a Contact lookup field (Sourced_By__c) on the Opportunity with the Converted Contact upon Lead Conversion but am not having any luck. I do not get an error but it also does not ...
4
votes
3answers
173 views

Delete chatter post on Account after Lead gets converted

When we convert the lead automatic chatter feed appears on Account. UserName converted a lead to this account.I have chatter feed enabled on Lead and Account.Is there an option to prevent this post ...
3
votes
1answer
86 views

Any way to convert leads in apex without using the convertLead() method?

The customer's spec requires some standard fields on leads to be mapped to custom fields and vice versa. I've been trying to override the lead conversion behaviour by writing an apex class. Mapping ...
1
vote
1answer
130 views

Ruby on Rails Example

I have a Rails app from which I would like to convert a lead and merge it with an existing account. Does anyone have some sample code using Ruby? I have found C# and Java examples and understand the ...
8
votes
3answers
281 views

Lead Converted Status

I have some problem, and I hope someone will be able to advice me with that. Organisation have multiple recordTypes, BusinessProcess and Converted statuses for Lead. Did anyone know is it possible to ...
1
vote
1answer
122 views

Lead Converted Status Not Appearing

Am I missing some sort of setting here? I know for a fact the 'Converted Status' on the Lead Process dictates the available Lead Statuses when converting a lead, and obviously SFDC's documentation ...
0
votes
1answer
93 views

Error in convertinglead to a person account

We are using apex to convert a lead to a person account. We are getting the following error when we do this. This code is executed on a trigger on the update of the lead. We have a custom button on ...
0
votes
1answer
42 views

How can I force convert a lead once in 'qualified' stage?

We want our leads to be automatically converted to account/contact (no oppty) once it's status changes to "Qualified" The only way I can think of is an Lead After Trigger. Ideas?
2
votes
0answers
186 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 ...
0
votes
1answer
127 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
2answers
672 views

Creating campaign members and converting leads within same trigger?

I have a client with an existing Lead trigger (written by someone else) that creates campaign members when the lead is inserted. Client now wants additional functionality in the trigger, ...
1
vote
0answers
219 views

How to trigger workflow on Account after lead conversion?

as far I can remember there is leadid that is accessible from API, but in workflow formula it is not. Is there a way to run workflow on newly created (converted) account? My immediate idea is to ...
2
votes
3answers
166 views

How to make sure that an oppty is created upon lead conversion?

Once a lead is converted, there is a special oppty that is created, which is related to the converted lead. This is mostly used by marketing for lead-to-cash reports. What happens with our salesteam, ...
0
votes
0answers
13 views

how to convert lead to account via data loader? [duplicate]

I want to convert a large amount of leads to accounts with an opportunity.Is it possible by data loader?Also for some leads, account does exist. Therefore how do I map fields if at all I user data ...
1
vote
1answer
200 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
0answers
45 views

Visualforce replacement for ConvertedLeadView page

I have a trigger that automates the conversion of a Lead based on some criteria, and after the Lead gets saved (and converted) it redirects me to a page that gives information about the Lead's related ...
3
votes
1answer
354 views

Lead insert trigger not running after web2lead

I have a trigger on Leads like this: trigger LeadTrigger on Lead (after insert, after update) { // I only see the following line in the logs when I manually insert a new lead ...
2
votes
1answer
780 views

Testing Custom Lead Conversion Trigger

I'm having some trouble setting up a testing class for a trigger that i wrote to populate a custom object with fields of a lead on lead conversion, in addition to the standard (Account, Contact, ...
2
votes
1answer
304 views

Lead Conversion to Custom Object

On a lead conversion, I would like to convert the information on the lead to an additional object. This object will be associated with both the account, as well as the opportunity. trigger createApp ...
1
vote
0answers
30 views

Lead convert VR doesn't fire when account already exist

Hoping you all can help me out with this! I have a Validation Rule that has a few required fields on the lead when converting to an opportunity. However, it becomes unnecessary when converting a lead ...
2
votes
1answer
110 views

Leadsource not mapped to accountsource upon conversion

When we convert a lead, it's LeadSource is NOT been shown in the AccountSource. The one error I see, is that in the Lead Custom Field Mapping The field is not mapped But I don't have the field: ...
1
vote
2answers
316 views

how to Create a trigger to copy attachment of lead to opportunity at the time of lead conversion [closed]

I need to create trigger to copy attachment of lead to opportunity at the time of lead conversion.
7
votes
1answer
730 views

Can I Edit any data on a converted lead?

We have some reports that look at opptys and accounts. Some, rely on the information that the lead had while it was a lead. After some changes to the lead we use today, We need to edit data, within ...
5
votes
1answer
134 views

Access Lead conversion field mappings from Apex?

I've written some Apex code to override the lead conversion process. if the contact exists, the client wants to update all the contact fields with the lead field data when the lead field is not null. ...
3
votes
1answer
77 views

update description from lead to existing contact

When a Lead is converted, the "Description" of the lead is going to the "Description" of the newly created contact. If I convert a Lead into an existing contact, then the "Description" of the lead ...
7
votes
1answer
497 views

Multiple Contacts Per Lead - Possible?

I need to find out if there is a way to have multiple people associated to a single lead. For instance, say your company interacts and sells to other businesses. For this scenario, say the sales team ...
1
vote
2answers
1k views

Associate Custom Objects to Account & Contact after lead conversion

We have a custom object that initially is related to lead, and upon lead conversion needs to be associated to account and contact. the custom object has lookup fields to lead, account and contact. I ...
3
votes
2answers
913 views

Trigger to automatically convert lead to person account and match on PersonEmail

We have an Apex trigger that automatically converts a lead to a PersonAccount. We want to make sure that if there is already a PersonAccount with an email that matches that of the lead that we merge ...
4
votes
1answer
294 views

SOQL Contact to Lead Query Help

Quick Information: Using SOQL via the Enterprise SOAP API This is a .NET 4.5 application, C# This is in my Salesforce sandbox I'm using Force.com Explorer I'm new to StackExchange AND Salesforce. Be ...
1
vote
1answer
615 views

“Enable Validation and Triggers from Lead Convert” not appearing, why?

Under what circumstances will the "Enable Validation and Triggers from Lead Convert" setting not appear in the Setup > Customize > Leads > Settings page? We did a customer install into an EE org and ...
2
votes
1answer
1k views

Trigger for Lead Convert trigger unit test coverage only 44%

i am working on this APEX trigger and unit test class. What it does for a existing lead -> a check out let's called "Ready to Convert" once is CHECKED and saved, the lead will be converted to Person ...
2
votes
1answer
312 views

how to convert lead to PersonAccount using apex

I am converting a Lead to Person Account using Apex but it is throwing the exception as given below: ConvertLead failed. First exception on row 0; first error: UNAVAILABLE_RECORDTYPE_EXCEPTION, ...