ExecuteWorkflowRequest-klasse
Contains the data that’s needed to execute a workflow.
Naamruimte: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)
Syntaxis
'Declaratie
<DataContractAttribute(Namespace:="https://schemas.microsoft.com/crm/2011/Contracts")> _
Public NotInheritable Class ExecuteWorkflowRequest
Inherits OrganizationRequest
[DataContractAttribute(Namespace="https://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class ExecuteWorkflowRequest : OrganizationRequest
Voorbeeld
In het volgende voorbeeld ziet u hoe u dit bericht moet gebruiken. Dit voorbeeld kan alleen correct werken, als u bent verbonden met de server voor het verkrijgen van een IOrganizationService interface. For the complete sample, see the link later in this topic.
// Create an ExecuteWorkflow request.
ExecuteWorkflowRequest request = new ExecuteWorkflowRequest()
{
WorkflowId = _workflowId,
EntityId = _leadId
};
Console.Write("Created ExecuteWorkflow request, ");
// Execute the workflow.
ExecuteWorkflowResponse response =
(ExecuteWorkflowResponse)_serviceProxy.Execute(request);
Console.WriteLine("and sent request to service.");
Opmerkingen
Message Availability
Dit bericht kan alleen werken als de beller is verbonden met de server.
Usage
Pass an instance of this class to the Execute method, which returns an instance of ExecuteWorkflowResponse.
Privileges and Access Rights
To perform this action, the caller must have privileges on the Workflow entity and access rights on the record specified in the EntityId and WorkflowId properties. For a complete list of the privileges required, see ExecuteWorkflow Privileges.
Overnamehiërarchie
System.Object
Microsoft.Xrm.Sdk.OrganizationRequest
Microsoft.Crm.Sdk.Messages.ExecuteWorkflowRequest
Thread-veiligheid
Alle openbare statische (Shared in Visual Basic) leden van dit type zijn thread-veilig. Exemplaarleden zijn niet gegarandeerd thread-veilig.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
Windows Server 2008,Windows Server 2012,Windows 7
Change History
Zie ook
Verwijzing
ExecuteWorkflowRequest-leden
Microsoft.Crm.Sdk.Messages-naamruimte
ExecuteWorkflowResponse
Overige resources
Processes, Workflows, and Dialogs
Sample: Execute a Workflow
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.