When a Lead is converted into an Account, Contact and Opportunity you may want to track this against the converted records. In this article we will work through the steps to indicate that an Account was created from a Lead and which Lead it was created from
This article will guide you through the creation of a Created from Lead? checkbox field and another field to store the Lead Id. Depending on your exact requirements or business process you may not need both of these fields and you could also extend this approach to the Opportunity and Contact objects too.
Be sure to develop these changes in a Sandbox first and thoroughly test before deploying to Production. During development it will help to show the fields on the page for testing purposes, but afterwards you may want to hide these from users.
For the purposes of this article we will assume you have the Customize Application Permission, which will grant you the necessary access to perform these steps. To get started we need to create some Custom Fields on the Lead object. Navigate to Setup by pressing on the Settings Cog and then Setup in the top right hand corner.
Step 1: From Setup press on Object Manager
Step 2: Press on Fields & Relationships from the left hand side menu
Step 3: Press on New from the action panel towards the top of the page
Step 4: Select Checkbox from the list of Data Type and then press Next
Step 5: Set the Field Label, Default Value to Checked and then provide a Description and Help Text
Step 6: Set the field as Visible and/or Read Only and then press Next. If you have Field-Level Security for Permission Sets during Field Creation enabled you will be able to do this on a Permission Set Level, otherwise you will be able to do this per Profile
Step 7: Add the field to Dynamic Forms-enabled record pages. You will only see this screen if you have Lightning Pages for the Lead Object that use Dynamic Forms
Step 8: Add the field to the relevant Page Layouts and then press Save & New
Step 9: Select Formula from the list of Data Type and then press Next
Step 10: Set the Field Label and the Formula Return Type as Text and then press Next
Step 11: Set the Formula as CASESAFEID(id) add a Description, Help Text and then press Next
Step 12: Add the Field to Dynamic Forms-enabled record pages. You will only see this screen if you have Lightning Pages for the Lead Object that use Dynamic Forms
Step 13: Add the field to the relevant Page Layouts and then press Save
Step 14: Click on Fields & Relationships and then New
Step 15: Select Checkbox from the list of Data Type and then press Next
Step 16: Set the Field Label and then provide a Description and Help Text. Leave the Default value as Unchecked and then press Next
Step 17: Set the Field as Visible and/or Read Only and then press Next. If you have Field-Level Security for Permission Sets during Field Creation enabled you will be able to do this on a Permission Set Level, otherwise you will be able to do this per Profile
Step 18: Add the Field to Dynamic Forms enabled Lightning Pages. You will only see this screen if you have Lightning Pages for the Account object that use Dynamic Forms
Step 19: Add the field to the relevant Page Layouts and then press Save & New
Step 20: Select Text from the list of Data Types and then press Next
Step 21: Set the Field Label, Length to 255 and then provide a Description and Help Text
Step 22: Set the field as Visible and/or Read Only and then press Next. If you have Field-Level Security for Permission Sets during Field Creation enabled you will be able to do this on a Permission Set Level, otherwise you will be able to do this per Profile
Step 23: Add the field to Dynamic Forms-enabled record pages. You will only see this screen if you have Lightning Pages for the Account Object that use Dynamic Forms
Step 24: Add the field to the relevant Page Layouts and then press Save
Step 25: Now that we’ve created our Lead fields and target fields on the Account Object, we need to map the values over on Lead conversion. this let’s head back to Object Manager
Step 26: Make sure that the Account Tab is selected and map Created from Lead? and Lead Id to the Account Fields and then press Save
Step 27: Using the App Launcher navigate to the Leads Tab to test your changes
Step 28: From the Leads Tab press on New and create a new record, on the new page you should observe your new fields with their Default Values. Once you’ve populated the required fields press Save
Step 29: From the Lead press on Convert and select the options for new Account, Contact and Opportunity and then press Convert
Step 30: Once the Lead has been converted click through to the Account record
Step 31: From the Account Page make sure that Created from Lead? is TRUE and the Lead Id is populated too
If you prefer this in a Video How-To format then you can watch this as a demo on YouTube: https://youtu.be/onkXQdCWzfI
https://help.salesforce.com/s/articleView?id=000386451&type=1
001738818

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.