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
ravi teja 81ravi teja 81 

i want to update a lookup field in opportunity

when i convert lead to opportunity i want to display lead name that converted in opportunity.i want to write it in triggers based on a check box i am updating that field. 
Shashikant SharmaShashikant Sharma
You need to develop Trigger on Lead After Update When Lead.IsConverted check box field is set true. You could get lead.ConvertedOpportunityId and update the opportunity according to your need.

See example :

Please mark this as solution if it helps you so others could be benifitted.


Write a trigger in lead object and if iscoverted is true then quey for the opportunity of that leadn and update with the lead in one custom field.

Ravi if u have still issue let me give u with the code?