You need to sign in to do that
Don't have an account?

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?
Read this help topic:
http://www.salesforce.com/docs/developer/cookbook/Content/apex_controlling_recursive_triggers.htm