问题
I have a transaction in CRM and it is reaching its maximum depth (8), it is a very complex chain of plug-ins and the business requires this operation in this way.
Is it a good option to change the maximum depth from (8) to (16) because our business requires or there is something that we should not do because there is a lot of logic being reached.
I asking this because Microsoft says this restriction is to detect infinite loops.
I want to ask Microsoft this, but this person that Microsoft has for us has a conflict of interest, because they want the same client we have, so if we suggest this for our CRM they will want to see what is wrong instead on focusing for the best solution for us.
Thanks in advance, I really appreciate your time.
回答1:
We decide to group the plug-ins by entity and message.
So if we had one plug-in foo filtering new_field1 and another plug-in doing bar filtering new_field2 we merged both plug-ins in one.
One step was registered filtering both fields and the implementation handles when to call foo, bar or both.
This way we reduce the depth.
来源:https://stackoverflow.com/questions/40516952/crm-2011-maximum-depth-reached