Click or drag to resize
WebCrmApiWriteQuotationLines Method
Writes a list of quotation lines.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public WriteQuotationLinesResult WriteQuotationLines(
	List<QuotationLine> quotationLines
)

Parameters

quotationLines
Type: System.Collections.GenericListQuotationLine

Return Value

Type: WriteQuotationLinesResult
Returns IDs of the processed quotation lines as well error status for each separate item and for the whole collection.
Examples
// 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);
See Also