Estimado soy nuevo en CRM 2011 y tengo que hacer una migracion de codigo CRM 3.0
al ejecutar este código me manda un mesaje de opportunidad no puede ser cerrada.
Entity
close = new
Entity("opportunityclose"
);
close[
"opportunityid"]
= new
EntityReference("opportunity",
new
Guid
(Idportunidad));
LoseOpportunityRequest
request = new
LoseOpportunityRequest
();
request.OpportunityClose = close;
request.Status =
new
OptionSetValue(int
.Parse(16));
LoseOpportunityResponse
stts = (LoseOpportunityResponse
)servicio.Execute(request);