15. Dezember 2010 14:05
CrmSdk.SetStateQuoteRequest setquote = new CrmSdk.SetStateQuoteRequest();
setquote.EntityId = quoteid;
setquote.QuoteState = new CrmSdk.QuoteState();
setquote.QuoteState = CrmSdk.QuoteState.Active;
setquote.QuoteStatus = -1;
service.Execute(setquote);
CrmSdk.quoteclose qc = new CrmSdk.quoteclose();
qc.quoteid = new CrmSdk.Lookup();
qc.quoteid.type = CrmSdk.EntityName.quote.ToString();
qc.quoteid.Value = quoteid;
CrmSdk.WinQuoteRequest WQR = new CrmSdk.WinQuoteRequest();
WQR.QuoteClose = qc;
WQR.Status = -1;
CrmSdk.WinQuoteResponse WQRES = (CrmSdk.WinQuoteResponse)service.Execute(WQR);
15. Dezember 2010 15:09