Partilhar via


Classe ExecuteWorkflowRequest

Aplica-se a: CRM 2015 on-prem, CRM Online

Contains the data that’s needed to execute a workflow.

Namespace: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (em Microsoft.Crm.Sdk.Proxy.dll)

Sintaxe

'Declaração
<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

Exemplo

O exemplo a seguir mostra como usar esta mensagem. Para que este exemplo funcione corretamente, você deve estar conectado ao servidor para obter um 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.");

Comentários

Message Availability

Para que esta mensagem funcione, o chamador deve estar conectado ao servidor.

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.

Hierarquia de Herança

System.Object
   Microsoft.Xrm.Sdk.OrganizationRequest
    Microsoft.Crm.Sdk.Messages.ExecuteWorkflowRequest

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows Server 2003 e

Plataformas de destino

Windows Vista,Windows XP

Change History

Consulte também

Referência

Membros de ExecuteWorkflowRequest
Namespace Microsoft.Crm.Sdk.Messages
ExecuteWorkflowResponse

Outros recursos

Processes, Workflows, and Dialogs
Sample: Execute a Workflow

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.