Hello,
I'm on Dynamics CRM 2016 SP1, and I ran into a strange issue yesterday that went against my understanding of plugins.
I have two plugins, they both fire on SetState/SetStateDynamicEntity. I'll call the first Plugin A, and the other Plugin B. They each trigger on a different entity type, which I'll also call Entity A, and Entity B.
The scenario I'm running into is that, if I deactivate Entity A, plugin A is supposed to find all Entity B records linked to A and then update their statecode to match what Entity A was set to and then that triggers additional logic in Plugin B
What I am finding however is that Plugin A updating Entity B statecodes never trigger Plugin B. If I deactivate Entity B directly, plugin B triggers. If I change my plugin steps on Plugin B to be Update (filtered to statecode attribute) then Plugin B triggers properly from Plugin A.
Is this behavior normal? Why would hooking the Update event instead of SetState be required to capture the change in statecode? Shouldn't changing the statecode via another plugin or directly on the reocrd always trigger the SetState/SetStateDynamic entity event?
*This post is locked for comments