ExecuteWFProcess Message

banner art

Executes the specified workflow process, creating a workflow process instance.

The relevant classes are specified in the following table.

Type Class
Request ExecuteWFProcessRequest
Response ExecuteWFProcessResponse
Entity wfprocess


To perform this action, the caller must have access rights on the workflow process entity instance. For a list of required privileges, see ExecuteWFProcess Privileges.


The following code example demonstrates how to use the ExecuteWFProcess message.

// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
ExecuteWFProcessRequest request = new ExecuteWFProcessRequest();
request.ProcessId = new Guid("{8DC95CE2-1A27-4CEA-9E6A-8F6BCC4B658D}");
request.EntityMoniker = new Moniker();
request.EntityMoniker.Id = createdId;
request.EntityMoniker.Name = EntityName.account.ToString();

// Execute the request.
ExecuteWFProcessResponse response = (ExecuteWFProcessResponse) service.Execute(request);

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.