Sample code to close a quote as won using WinQuoteRequest in CRM 2016 (and earlier)
Views (2844)
Just sharing a sample code to close quote as won through C#
WinQuoteRequest winQuoteRequest = new WinQuoteRequest();
Entity quoteClose = new Entity("quoteclose");
quoteClose.Attributes["quoteid"] = new EntityReference("quote", new Guid("015816C2-2F10-E611-8112-3863BB353ED0"));
quoteClose.Attributes["subject"] = "Quote Close" + DateTime.Now.ToString();
winQuoteRequest.QuoteClose = quoteClose;
winQuoteRequest.Status = new OptionSetValue(-1);
organizationProxy.Execute(winQuoteRequest);
Hope it helps..
Filed under: CRM, CRM 2011, CRM 2013, CRM 2015, CRM 2016, Microsoft Dynamics CRM Tagged: CRM 2011, CRM 2013, CRM 2015, CRM 2016, Microsoft Dynamics CRM
This was originally posted here.

Like
Report
*This post is locked for comments