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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
externalListId
Type: System.GuidThe GUID of the external list identifier (ID).
fieldNameInExternal
Type: System.StringA string that represents the field name in the external list.
value
Type: System.ObjectAn 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.