CrmServiceClient.CloseActivity Method (String, Guid, String, String, Guid)
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
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.
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Public Function CloseActivity ( activityEntityType As String, activityId As Guid, stateCode As String, statusCode As String, batchId As Guid ) As Boolean
Parameters
- activityEntityType
-
Type:
System.String
Type of Activity you would like to close.. Supports fax, letter, phonecall
- activityId
-
Type:
System.Guid
ID of the Activity you want to close
- stateCode
-
Type:
System.String
State Code configured on the activity
- statusCode
-
Type:
System.String
Status code on the activity
- batchId
-
Type:
System.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
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright