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
kaustubh chandratre 2kaustubh chandratre 2 

Create a checkbox field on Account Object. Field name:Check Opportunity Field Type: CheckBox Create a checkbox field on Opportunity Object. Field name: Account CheckPoint Field Type: CheckBox If Account having field check opportunity = true. We have

Using apex class
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Kaustubh,

Can you confirm if the Trigger logic to be on Account or Opportunity. If that is on Account then when ever Check Opportunity Field Type on Account is checked to True it will check all the opportunittes under that Account and checks that to true.

If the logic is on Opportunity then when a Opporuntiy is created or edited it check if Account check box is true and evalues the checkbox on opportunity to true.

If you want both the scenerios we have to implement two triggers one on Account and another on Opportunity. Can you confirm on it.

Thanks,