Reputation: 9538
The situation is following:
I've created plugin on RevokeAccess
message in MS CRM. And in the same time I'm executing RevokeAccessRequest
from another piece of code. Logically, RevokeAccess
plugin fires in this case too.
Is there any approach to forbid plugins from firing in certain cases?
Upvotes: 1
Views: 264
Reputation: 7215
You might be able to stop it firing by checking the context depth. This shows how nested the call is i.e if it was called from another plugin or straight from CRM
Upvotes: 3