Executing Processes (Workflow)

The iWay Application Adapter for Microsoft Dynamics CRM 2011 On-Premises allows you to execute workflows and obtain results. The ExecuteWorkflow operation under the Process node is used for this purpose, as shown in the following image.

The following example shows the command that is used to execute the workflow.

<?xml version="1.0" encoding="UTF-8"?>
<is:workflow.ExecuteWorkflow schemaVersion="1.0" xsi:schemaLocation="urn:iwaysoftware:adapter:MSCRM2011:workflow:ExecuteWorkflow ExecuteWorkflow_request.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:is="urn:iwaysoftware:adapter:MSCRM2011:workflow:ExecuteWorkflow">
	<is:ResponseLevel>WorkflowGuid</is:ResponseLevel>
	<is:EntityList>
		<is:Entity>
		<is:Params>
			<is:EntityId>EEEEEEEE-EEEE-EEEE-EEEE-EEEEEEEEE005</is:EntityId>
			<is:WorkflowId>EEEEEEEE-EEEE-EEEE-EEEE-EEEEEEEEE002</is:WorkflowId>
		</is:Params>
		</is:Entity>
	</is:EntityList>
</is:workflow.ExecuteWorkflow>

The workflow GUID and entity GUID are required and must be specified. Since every workflow in Microsoft Dynamics CRM is associated with some entity, the specific entity must be specified.

The ResponseLevel parameter is an important aspect of a workflow execution request. There are three values that can be specified for this parameter: