Wednesday, March 24, 2010 5:47 PM
What is the difference between the SetState and SetStateDynamicEntity messages and what event(s) are they used for?
Thanks in advance.
Wednesday, March 24, 2010 5:55 PM
Why do I need to register on SetState and SetStateDynamicEntity separately?
· there are multiple messages that perform the same action in CRM. One such example is SetStateRequest and SetStateDyanmicEntityRequest . If you want to write a plug-in on SetState, then you need to register it on both messages
Thursday, March 25, 2010 6:19 PMBut what's the difference between the two?
Thursday, March 25, 2010 7:28 PM
they both do the same thing but diffrently
SetState will be used to set State for specific entity
while SetStateDyanmicEntity will also usd to set state for dynaminc entity (but you need to provide entity name for the same)..meaning this will also do the same thing..
the SetStateDynamicEntity request generally get used during plugin/custom workflow code becuase in that code you can not get referance/intellisense for custom entity......so SetStateDynamicEntity will be used to set state for this custom entity..
Hope this helps..
- Marked As Answer by DavidBerryMVP, Moderator Saturday, December 11, 2010 1:25 AM