shytikov
shytikov

Reputation: 9538

Is it possible to disable message plugin from firing in MS CRM 2011

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

Answers (1)

Kevin Ross
Kevin Ross

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

Related Questions