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.
RetrieveActivityCount Retrieves the activity count for the current primary entity.
Instance Property Description
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.
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.
PrimaryEntityName Gets the name of the primary entity for the workflow.
UserId Gets the ID of the system user account under which the current workflow is executing.


Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also


© 2010 Microsoft Corporation. All rights reserved.