Reputation: 41
I have a plugIn on an Entity and registered an Update Step. But when I update the Entity record through workflow then PlugIn is not being triggered. I have described the whole procedure of execution below.
Kindly let me know what can be the issue in the whole procedure described above.
Note that, I am using CRM 2011. Moreover, If I manually update the record in EntityB then PlugInB triggers
Upvotes: 0
Views: 3178
Reputation:
Typically - what will cause a plugin not to fire is due to context depth and other items related to the async nature of workflows. If you intend to trigger a plugin from a workflow, then the context depth will be increased ... also you need to ensure that your plugin does not call itself over and over again so I would recommend using a pre-operation plugin that does not do depth checks and cannot re-trigger itself.
But - again - this is probably the context depth check in the plugin if you do it or something related to it.
Upvotes: 2
Reputation: 18895
There are lots of possibilities why this would happen. Most likely whatever update you're doing in Workflow A for EntityB is not updating an attribute that is in the registration for PluginB to cause it to fire.
Other possibilities include WorkflowA not actually triggering, or PluginB triggering and maybe not doing anything.
Upvotes: 1