WebCrmApiWriteQuotationLines Method |
Namespace: dk.webCRM.ApiSync.WebService
public WriteQuotationLinesResult WriteQuotationLines( List<QuotationLine> quotationLines )
// Login and get a webservice ticket WebCrmApiSoapClient proxy = new WebCrmApiSoapClient(); ErrorStatus errorStatus; TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus); // Write quotation lines List<QuotationLine> quotationLines = new List<QuotationLine>() { new QuotationLine() { OpportunityId = 111, OrganisationId = 222, Comment = "API", Memo = "API" } }; WriteQuotationLinesResult result = proxy.WriteQuotationLines(ticket, quotationLines);