Partilhar via


CrmServiceClient.CloseQuote Method

Definition

Closes a quote as won or lost, Revise is not supported via this method

public Guid CloseQuote (Guid quoteId, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> fieldList, int quoteStatusCode = 3, Guid batchId = default);
member this.CloseQuote : Guid * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * int * Guid -> Guid
Public Function CloseQuote (quoteId As Guid, fieldList As Dictionary(Of String, CrmDataTypeWrapper), Optional quoteStatusCode As Integer = 3, Optional batchId As Guid = Nothing) As Guid

Parameters

quoteId
Guid

ID of the quote to close

fieldList
Dictionary<String,CrmDataTypeWrapper>

List of fields that need to be updated

quoteStatusCode
Int32

Status id of the quote, must be greater then 3 but not 7

batchId
Guid

Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

Returns

Applies to