IWorkflowContext Interface (Sdk Assembly)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Provides access to the data associated with workflow instance.

The IWorkflowContext interface exposes the following members.

Instance Method Description
CreateCrmService Creates an instance of CrmService to be used by workflow activities.
CreateMetadataService Creates an instance of MetadataService to be used by workflow activities.
EvaluateCondition Evaluates a workflow condition using given a condition operator, primaryValue, and additional values.
EvaluateExpression Evaluates an expression.
PopulateEntitiesFrom  
RetrieveActivityCount Retrieves the activity count for the current primary entity.
Instance Property Description
ActivationId  
AsyncOperationId Gets the ID of the asynchronous operation (system job) for the workflow.
EntityDependencies Gets the collection of entity dependencies for the workflow.
InputParameters Gets the input parameters for the workflow.
MessageName  
OrganizationId Gets the ID of the organization for the workflow.
OutputParameters Gets the output parameters for the workflow.
PluginTypeId Gets the ID of the plug-in type.
PrimaryEntityId Gets the ID of the primary entity.
PrimaryEntityImage  
PrimaryEntityName Gets the name of the primary entity for the workflow.
PrimaryEntityPostImage  
PrimaryEntityPreImage  
SharedVariables  
StageName  
UserId Gets the ID of the system user account under which the current workflow is executing.

Requirements

Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference

© 2010 Microsoft Corporation. All rights reserved.