WebCrmApiDeleteQuotation Method |
Deletes one or all quotation lines for a specific Opportunity.
Namespace: dk.webCRM.ApiSync.WebServiceAssembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntaxpublic DeleteQuotationResult DeleteQuotation(
long opportunityId,
long productId
)
Public Function DeleteQuotation (
opportunityId As Long,
productId As Long
) As DeleteQuotationResult
public:
DeleteQuotationResult^ DeleteQuotation(
long long opportunityId,
long long productId
)
member DeleteQuotation :
opportunityId : int64 *
productId : int64 -> DeleteQuotationResult
Parameters
- opportunityId
- Type: SystemInt64
Opportunity id. - productId
- Type: SystemInt64
Product id.
Return Value
Type:
DeleteQuotationResultReturns 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
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);
DeleteQuotationResult result = proxy.DeleteQuotation(ticket, 123, 0);
See Also