|
|
#1 |
|
Участник
|
Как программно закрыть Opportunity?
Пытался найти какие-либо специализированные методы для этого, но безуспешно. Пробовал делать так:
Код: SetStateOpportunityCloseRequest closeOpportunityRequest = newSetStateOpportunityCloseRequest();
closeOpportunityRequest.EntityId = newGuid("...");
closeOpportunityRequest.OpportunityCloseState = OpportunityCloseState.Completed;
closeOpportunityRequest.OpportunityCloseStatus = 1;
SetStateOpportunityCloseResponse result = (SetStateOpportunityCloseResponse)service.Execute(closeOpportunityRequest);
Может кто сталкивался уже с этим? Помогите плз. |
|
|