Partilhar via


Helper.LookupFriendlyString Method (WorkflowContext, String, SPItemKey, String)

Retrieves the value of a field for the specified list item.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function LookupFriendlyString ( _
    context As WorkflowContext, _
    listIdOrName As String, _
    listItem As SPItemKey, _
    fieldName As String _
) As String
'Usage
Dim context As WorkflowContext
Dim listIdOrName As String
Dim listItem As SPItemKey
Dim fieldName As String
Dim returnValue As String

returnValue = Helper.LookupFriendlyString(context, _
    listIdOrName, listItem, fieldName)
public static string LookupFriendlyString(
    WorkflowContext context,
    string listIdOrName,
    SPItemKey listItem,
    string fieldName
)

Parameters

  • listIdOrName
    Type: System.String

    The GUID or display name of the list.

  • fieldName
    Type: System.String

    The name of the field for the specified list item in the specified list from which to retrieve the value.

Return Value

Type: System.String
A value that is retrieved from the specified field of the specified list item.

Remarks

This method gets the value of the specified field for the specified item in the list.

This method returns null if the field cannot be found.

See Also

Reference

Helper Class

Helper Members

LookupFriendlyString Overload

Microsoft.SharePoint.WorkflowActions Namespace