Share via


Helper.FindValue Method (WorkflowContext, String, String, Object)

Finds an item in a list that contains a field value that matches the specified value.

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

Syntax

'Declaration
Public Shared Function FindValue ( _
    context As WorkflowContext, _
    externalListId As String, _
    fieldNameInExternal As String, _
    value As Object _
) As Integer
'Usage
Dim context As WorkflowContext
Dim externalListId As String
Dim fieldNameInExternal As String
Dim value As Object
Dim returnValue As Integer

returnValue = Helper.FindValue(context, _
    externalListId, fieldNameInExternal, _
    value)
public static int FindValue(
    WorkflowContext context,
    string externalListId,
    string fieldNameInExternal,
    Object value
)

Parameters

  • externalListId
    Type: System.String

    A string that represents the GUID that corresponds to the external list or the external list display name.

  • fieldNameInExternal
    Type: System.String

    A string that represents the field name in the external list.

  • value
    Type: System.Object

    An object that contains the field value to find in the external list.

Return Value

Type: System.Int32
The external list item where the matching value is found.

See Also

Reference

Helper Class

Helper Members

FindValue Overload

Microsoft.SharePoint.WorkflowActions Namespace