+ Start a Discussion
Sangeetha TSangeetha T 

Apex trigger for converted leads

I have a custom field Contact__c on Opportunity object and that field should be populated with the value of ContactID of that opportunity
This should also work for the converted leads they turn into a contact and opportunity

How to achieve this using trigger ​​.It would be great if you give me the sample code
#Newtotrigger
sharathchandra thukkanisharathchandra thukkani
You can do this with Workflow:
Create workflow on the Opportunity object with field update action which will update the Contact__c with ContactId. 

Let me know if you face any issue
Sangeetha TSangeetha T
I have tried workflow it is not working
Also used formula field​