Partilhar via


Helper.FindValue Method (WorkflowContext, Guid, 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 Guid, _
    fieldNameInExternal As String, _
    value As Object _
) As Integer
'Usage
Dim context As WorkflowContext
Dim externalListId As Guid
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,
    Guid externalListId,
    string fieldNameInExternal,
    Object value
)

Parameters

  • externalListId
    Type: System.Guid

    The GUID of the external list identifier (ID).

  • 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 look for 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