Share via


Helper.WILookupUser method (WorkflowContext, String)

Looks up and returns the value of the specified user field in the given workflow context.

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

Syntax

'Declaration
Public Shared Function WILookupUser ( _
    context As WorkflowContext, _
    fieldName As String _
) As String
'Usage
Dim context As WorkflowContext
Dim fieldName As String
Dim returnValue As String

returnValue = Helper.WILookupUser(context, _
    fieldName)
public static string WILookupUser(
    WorkflowContext context,
    string fieldName
)

Parameters

  • fieldName
    Type: System.String

    A String value that represents the desired field value to return.

Return value

Type: System.String
The name of the user.

Remarks

The user fields available are AssociatorUser, CurrentUser and Initiator

See also

Reference

Helper class

Helper members

WILookupUser overload

Microsoft.SharePoint.WorkflowActions namespace