Helper.FindValueWithKey Method (WorkflowContext, String, String, Object)
Gets the item in the specified list that contains the specified field value.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function FindValueWithKey ( _
context As WorkflowContext, _
externalListId As String, _
fieldNameInExternal As String, _
value As Object _
) As SPItemKey
'Usage
Dim context As WorkflowContext
Dim externalListId As String
Dim fieldNameInExternal As String
Dim value As Object
Dim returnValue As SPItemKey
returnValue = Helper.FindValueWithKey(context, _
externalListId, fieldNameInExternal, _
value)
public static SPItemKey FindValueWithKey(
WorkflowContext context,
string externalListId,
string fieldNameInExternal,
Object value
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
externalListId
Type: System.StringThe list to search.
fieldNameInExternal
Type: System.StringThe name of the field.
value
Type: System.ObjectThe value of the field.
Return Value
Type: Microsoft.SharePoint.Workflow.SPItemKey
The list item found.
Remarks
This method returns the empty list item if the list item cannot be found in the specified list or the type of the list item is Invalid.