Share via


FindActivity.Execute Method

Finds the specified item in the specified list.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Protected Overrides Function Execute ( _
    context As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim context As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus

returnValue = Me.Execute(context)
protected override ActivityExecutionStatus Execute(
    ActivityExecutionContext context
)

Parameters

Return Value

Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity.

Remarks

The workflow runtime calls this override to find a specified item in a specified list.

This override searches the list specified by the ListId property for the item specified by the ListItem property with the field name specified by the FieldName property. If it finds the item in the list, it sets the value of the ReturnValue property to the ID of the list item. It always returns Closed.

See Also

Reference

FindActivity Class

FindActivity Members

Microsoft.SharePoint.WorkflowActions Namespace