Classe ExecuteWorkflowRequest
S'applique à: CRM 2015 on-prem, CRM Online
Contains the data that’s needed to execute a workflow.
Espace de noms: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (dans Microsoft.Crm.Sdk.Proxy.dll)
Syntaxe
'Déclaration
<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
Exemple
L'exemple suivant montre comment utiliser ce message. Pour que cet exemple fonctionne correctement, vous devez être connecté au serveur pour accéder à 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.");
Remarques
Message Availability
Pour que ce message fonctionne, l'appelant doit être connecté au serveur.
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.
Hiérarchie d'héritage
System.Object
Microsoft.Xrm.Sdk.OrganizationRequest
Microsoft.Crm.Sdk.Messages.ExecuteWorkflowRequest
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows Vista,Windows XP
Change History
Voir aussi
Référence
Membres ExecuteWorkflowRequest
Espace de noms Microsoft.Crm.Sdk.Messages
ExecuteWorkflowResponse
Autres ressources
Processes, Workflows, and Dialogs
Sample: Execute a Workflow
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.