Condividi tramite


CrmServiceClient.CloseActivity(String, Guid, String, String, Guid) Method

Definition

Closes the Activity type specified. The Activity Entity type supports fax , letter , and phonecall

*Note: This will default to using English names for Status. if you need to use Non-English, you should populate the names for completed for the status and state.

public bool CloseActivity (string activityEntityType, Guid activityId, string stateCode = "completed", string statusCode = "completed", Guid batchId = default);
member this.CloseActivity : string * Guid * string * string * Guid -> bool
Public Function CloseActivity (activityEntityType As String, activityId As Guid, Optional stateCode As String = "completed", Optional statusCode As String = "completed", Optional batchId As Guid = Nothing) As Boolean

Parameters

activityEntityType
String

Type of Activity you would like to close.. Supports fax, letter, phonecall

activityId
Guid

ID of the Activity you want to close

stateCode
String

State Code configured on the activity

statusCode
String

Status code on the activity

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

true if success false if not.

Applies to