Click or drag to resize
WebCrmApiDeleteQuotation Method
Deletes one or all quotation lines for a specific Opportunity.

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 DeleteQuotationResult DeleteQuotation(
	long opportunityId,
	long productId
)

Parameters

opportunityId
Type: SystemInt64
Opportunity id.
productId
Type: SystemInt64
Product id.

Return Value

Type: DeleteQuotationResult
Returns error status and a number of deleted quotation lines.
Remarks
If productID = 0 then all quotation lines (= Product records) for the Opportunity are deleted.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);

// Delete quotation lines
DeleteQuotationResult result = proxy.DeleteQuotation(ticket, 123, 0);
See Also