You need to sign in to do that
Don't have an account?
abcd1234
Inactivate Opportunity whenever account is inactivated
When a parent account is inactivated ( A custom field 'Inactive' , wil be set to true), then all the opportunites for that account & opportunities of the child accounts should be transferred to 'Opportunity Deleted' stage and owner of the opportunites ha s to be changed.
When Iam trying to do this. am getting errors like:
1. Apex trigger INACTIVATE_TRIGGER caused an unexpected exception, contact your administrator: INACTIVATE_TRIGGER: System.LimitException: Too many SOQL queries: 101
2. self-recursion :
Cannot recursively update itself
Can someone help me in this?
Thanks
I suspect there's a little "bulkification" that needs to be done. Probably something like this:
thanx a lot for the quick response