Classe ExecuteWorkflowRequest
Si applica a: CRM 2015 on-prem, CRM Online
Contains the data that’s needed to execute a workflow.
Spazio dei nomi: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)
Sintassi
'Dichiarazione
<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
Esempio
Nell'esempio seguente viene illustrato come utilizzare questo messaggio. Affinché questo esempio funzioni correttamente, è necessario essere connessi al server per ottenere 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.");
Note
Message Availability
Affinché questo messaggio funzioni, il chiamante deve essere connesso al 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.
Gerarchia ereditarietà
System.Object
Microsoft.Xrm.Sdk.OrganizationRequest
Microsoft.Crm.Sdk.Messages.ExecuteWorkflowRequest
Thread Safety
Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.
Piattaforme
Piattaforme di sviluppo
Windows Vista, Windows Server 2003 e
Piattaforme di destinazione
Windows Vista,Windows XP
Change History
Vedere anche
Riferimento
Membri ExecuteWorkflowRequest
Spazio dei nomi Microsoft.Crm.Sdk.Messages
ExecuteWorkflowResponse
Altre risorse
Processes, Workflows, and Dialogs
Sample: Execute a Workflow
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.