I am trying to do the code below but it is not working - anyone know why?
EntityReference cdd = (EntityReference)entity.Attributes["new_case"];
if (cdd != null)
You need to check the null condition before:
if (entity.Contains("new_case") && entity["new_case"] != null)
EntityReference cdd = (EntityReference)entity["new_case"];
// do code
My blog: www.crmanswers.net -
Rockstar 365 Profile
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?