Helper.FindValueWithKey Method (WorkflowContext, Guid, 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 Guid, _
fieldNameInExternal As String, _
value As Object _
) As SPItemKey
'Usage
Dim context As WorkflowContext
Dim externalListId As Guid
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,
Guid 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.GuidThe 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 an empty list item if the list item cannot be found in the specified list or the type of the list item is Invalid.