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
nusrat khowajanusrat khowaja 

Field check in two objects

Please help me to solve this problem,
I have given  a task : when Create a LEAD Check if there is any account record already exists on bases of company name  in ACCOUNTS
If it is exist then UnCheck the field box called “Active Lead” In the Account ,and Check the field box "Active Opportunity" in the Account Object.
AdamDawAdamDaw
I think this could be handled with a trigger on lead, and then a class or method that will handle the updates to Account. I would definitely recommend running that second portion asynchronously to move it out of the existing execution state!
nusrat khowajanusrat khowaja
i did not get it, could you please provide me more detail , how to do it and code for tigger.

thanks