Helper.Find Method (WorkflowContext, String, Int32, String, String, String)
Finds the field value of an external list that matches an associated field, list, and list item, by using the list identifier (ID) or list name of the associated list.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function Find ( _
context As WorkflowContext, _
listIdOrName As String, _
listItem As Integer, _
fieldNameInAssociated As String, _
externalListId As String, _
fieldNameInExternal As String _
) As Integer
'Usage
Dim context As WorkflowContext
Dim listIdOrName As String
Dim listItem As Integer
Dim fieldNameInAssociated As String
Dim externalListId As String
Dim fieldNameInExternal As String
Dim returnValue As Integer
returnValue = Helper.Find(context, _
listIdOrName, listItem, fieldNameInAssociated, _
externalListId, fieldNameInExternal)
public static int Find(
WorkflowContext context,
string listIdOrName,
int listItem,
string fieldNameInAssociated,
string externalListId,
string fieldNameInExternal
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
listIdOrName
Type: System.StringA string that represents the GUID of the SharePoint Foundation list ID or the list display name.
listItem
Type: System.Int32An integer that represents the SharePoint Foundation list item in a specified list.
fieldNameInAssociated
Type: System.StringA string that represents the field name in the associated list.
externalListId
Type: System.StringA string that represents the GUID that corresponds to the external list or the external list display name.
fieldNameInExternal
Type: System.StringA string that represents the field name in the external list.
Return Value
Type: System.Int32
An integer that represents the item ID from the external list.