Click or drag to resize
WebCrmApiWritePossibleQuotations Method
Writes a list of possible quotations.

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 WritePossibleQuotationsResult WritePossibleQuotations(
	List<PossibleQuotationData> possibleQuotations
)

Parameters

possibleQuotations
Type: System.Collections.GenericListPossibleQuotationData

Return Value

Type: WritePossibleQuotationsResult
Returns error status and the amount of written possible quotations.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);

// Write possible quotations
List<PossibleQuotationData> possibleQuotations = new List<PossibleQuotationData>()
{
    new PossibleQuotationData()
    {
        Data1 = "SomeData1",
        Data2 = "SomeData2",
        Data3 = "SomeData3",
        Price = 10.25
    }
};

WritePossibleQuotationsResult result = proxy.WritePossibleQuotations(ticket, possibleQuotations);
See Also