Posts Tagged ‘LookUp Field’

Find User from LookUp Field

 This code snippet is how to get user from the Lookup field here I am leaving upto SPUser object.   ►objItem is List Item which has user/group LookUp Field SPFieldLookupValue UserLookUPValue = new SPFieldLookupValue(objItem[“YourLookUPFieldName”].ToString());  if (((SPFieldUserValueCollection)objItem[[“YOURLOOKUPFIELDNAME”]).Count > 0)  {      while (intUserCount < ((SPFieldUserValueCollection)objItem[“YOURLOOKUPFIELDNAME”]).Count)      {          if (((SPFieldUserValueCollection)objItem[“YOURLOOKUPFIELDNAME”])[intUserCount].User != null)          {              //If [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.