Hi experts,
I have a query on the recursion of plugins. By default the maximum allowed loop for recursion is 8.
In my scenario I have self referential entity, used to maintain some configuration data for different business units.By default when I create a configuration record for the top BU it should get created for all the BU's under it and on update of the data on the parent record should also update all the records under it.
To achieve this we created a plugin which will be triggered on Create and Update of record.
when first record is created,on post create it finds the child BU's of the current BU and creates the record for the child in a loop and this Plugin will be called for all the child BU's till it creates the record for last child.
We have similar BU structure in all environments, but this Plugin is working in only some environments . In other environments we are getting exception at 8th time calling.
Do you see any issues here or any suggestions to re implement the logic in a different way would be appreciated.
Thanks!
*This post is locked for comments
I have the same question (0)