Share via


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

Retrieves a string value from a field for a specified SharePoint Foundationlist 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 Integer, _
    fieldName As String _
) As String
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As Integer
Dim fieldName As String
Dim returnValue As String

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

Parameters

  • listId
    Type: System.String

    A string that representing the GUID of the SharePoint Foundation list identifier (ID). May also be the display name of the list.

  • listItem
    Type: System.Int32

    An integer that represents the SharePoint Foundation list item in a specified list.

  • fieldName
    Type: System.String

    A string that represents the name of the field in the list from which you want to retrieve a Boolean value.

Return value

Type: System.String
A string value from the specified field.

Remarks

The CustomLookupFriendly method reads the value of the specified field and stores it as an object. Then it modifies or casts the value of the object, depending on the SPFieldType of that field.

See also

Reference

Helper class

Helper members

CustomLookupFriendlyString overload

Microsoft.SharePoint.WorkflowActions namespace