ExecuteWorkflow
Executes a workflow on a specified entity. The WorkflowId must be the GUID of an activated workflow in Dynamics CRM. The procedure returns the Id of the resulting AsyncOperation.
Stored Procedure-Specific Information
To execute this procedure, enter:EXEC ExecuteWorkflow WorkflowId = '00000000-0000-0000-0000-000000000001', EntityId = '00000000-0000-0000-0000-000000000002'
Input
| Name | Type | Description |
| EntityId | String | Id of the entity to be executed for the workflow. |
| WorkflowId | String | Id of the workflow to be executed. |
Result Set Columns
| Name | Type | Description |
| Id | String | Id of the AsyncOperation. |