Skip to main content
Community site session details

Community site session details

Session Id :

SetStateDynamicEntity on Incident Entity

Community Member Profile Picture Community Member

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.

Tagged: code, plugin

This was originally posted here.

Comments

*This post is locked for comments