Показать сообщение отдельно
Старый 18.09.2012, 10:51   #3  
Taker1796 is offline
Taker1796
Участник
Аватар для Taker1796
 
112 / 11 (1) +
Регистрация: 22.04.2012
Вот так для crm 2011

X++:
if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is EntityReference)
{
   entity = (Entity)context.PreEntityImages["PreImage"];
}

Последний раз редактировалось Taker1796; 18.09.2012 в 11:30.