Revision: 58312
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 7, 2012 01:12 by toLL
Initial Code
private void WinOpportunity(IOrganizationService organizationService, Opportunity opportunity) { OpportunityClose oppClose = new OpportunityClose { OpportunityId = opportunity.ToEntityReference(), Subject = "Won!", ActualEnd = DateTime.Now, Description = "Won!", }; var req = new WinOpportunityRequest { OpportunityClose = oppClose, RequestName = "WinOpportunity", Status = new OptionSetValue(3) }; var response = (WinOpportunityResponse)organizationService.Execute(req); var results = response.Results; }
Initial URL
Initial Description
How to set opportunity status to WON
Initial Title
CRM 2011: Win Opportunity using OpportunityClose and WinOpportunityRequest
Initial Tags
Initial Language
C#