SPWorkflowTaskProperties.AssignedTo Property (Microsoft.SharePoint.Workflow)
Gets or sets the user name of the person to whom the workflow task is assigned.

Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public Property AssignedTo As String
Visual Basic (Usage)
Dim instance As SPWorkflowTaskProperties
Dim value As String

value = instance.AssignedTo

instance.AssignedTo = value
C#
public string AssignedTo { get; set; }

Property Value

A String that represents the user name.
See Also

Tags :


Community Content

Chiliyago
DOMAIN\user

This must be in the form DOMAIN\Usename. To get the username from a "Person or Group" type field in a sharepoint list, use:


using Microsoft.SharePoint;

SPFieldUserValue userValue = new SPFieldUserValue(workflowProperties.Web, retrievedFieldValue);
string userName=userValue.User.LoginName;


Tags :

Page view tracker