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
hoagieryderhoagieryder 

Trigger Updating Child and Parent Accounts

I am trying to create a trigger that updates the Parent account and any children (all children and parents are account objects). If acc_Field1 = "Yes", then DNM__c should be TRUE in both the child and parent accounts.

 

 

If (acc_Field1 = 'Yes')

{

/*Logic Here To Update All Accounts to DNM__c that are Related to it

}

 

In the above code I always hit the limit for DML statements.  I think it is because when I update other accounts the trigger keeps firing in an infinite loop. Does anyone have any ideas?