function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anthony MossAnthony Moss 

Lead Conversion Trigger

I'm trying to create a trigger that would auto-convert a lead when lead rating = Hot. This is not a problem - the problem is a new account is created for every converted lead rather than matching an account if the account already exists. Can anyone provide some sample code for converting a lead and creating a new account if the account name is new but matching an existing account (match on account name, we don't collect emails for accounts).
Blake TanonBlake Tanon
see here 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_convertlead.htm#topic-title