Возникла следующая проблема. Не могу поймать событие Win для opportunity с помощью plugin'а на стадии Pre-Stage, чтобы например проверить есть ли открытые заказы и запретить закрывать сделку со статусом успех.
Код простейший, но событие не выстреливает.
Выстреливает Pre Update, но как в нем обратиться к statecode не знаю, т.к. в property bag его нету.
Это уже читал:
http://dmcrm.blogspot.com/2008/08/st...on-method.html
Кстати, как описано ниже, не выстреливает. Регистрировал одновременно на все черты события в PreStage на Parent Pipeline на сущность opportunity.
"Why does Opportunity State change not caught when I register on SetState alone?
· This is one more example of multiple SDK operations valid for an action in CRM. If you look at the Opportunity entity, you shall find that there are Lose, Win, Setstate, SetStateDynamicEntity requests that change the State of an opportunity. So you need to register your plug-in on all the mentioned messages."
http://blogs.msdn.com/crm/archive/20...r-crm-4-0.aspx
Помогите, пожалуйста, хотя бы идеей.