I wrote a plug-in that needs to perform some validation when a user tries to close an Incident record in CRM and verify whether it can be closed or not. I registered it against the SetStateDynamicEntity, however it didn’t trigger. I then registered it against the Create of the IncidentClose entity, but it didn’t trigger there either (probably because I registered in the parent pipleine rather than the child). I then realised there is a Close message and registered against that instead, and it worked!
The SetStateDynamicEntity message is only triggered when an Incident is re-activated after being closed.