Share via


Helper.CustomLookupFriendlyString method (WorkflowContext, String, SPItemKey, String)

Retrieves a string value from a field for a specific list and list item.

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

Syntax

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

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

Parameters

  • listId
    Type: System.String

    A string value representing the GUID of the list. This value may also be the list display name.

  • fieldName
    Type: System.String

    A string representing a specific field name on the list.

Return value

Type: System.String
The string value of the field.

See also

Reference

Helper class

Helper members

CustomLookupFriendlyString overload

Microsoft.SharePoint.WorkflowActions namespace