[SalesForce] How to identify if an opportunity was created from lead conversion

I want to know if opportunity is created after lead conversion or not for the formula field. Is there any way where I can check if particular opportunity is created from lead conversion?

Best Answer

The easiest way to do this is as follows:

  • Create a field on Lead (type checkbox) Is_Lead__c, default true

  • Create a field on Opportunity (type checkbox) Is_Originated_From_Lead_Conversion__c, default false

  • Use Lead Mapping to map Lead.Is_Lead__c to Opportunity.Is_Originated_From_Lead_Conversion__c

for legacy leads/Oppos, you'll need to follow the suggestion from sfdcfox