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

Definition

Executes a named workflow on an object.

public Guid ExecuteWorkflowOnEntity (string workflowName, Guid id, Guid batchId = null);
member this.ExecuteWorkflowOnEntity : string * Guid * Guid -> Guid
Public Function ExecuteWorkflowOnEntity (workflowName As String, id As Guid, Optional batchId As Guid = null) As Guid

Parameters

workflowName
String String String

name of the workflow to run

id
Guid Guid Guid

ID to exec against

batchId
Guid Guid 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

Async Op ID of the WF or Guid.Empty

Remarks

Applies to