Tagged Questions
0
votes
0answers
22 views
Why Does a People Field Return a String by Default?
I recently "cleaned up" a chunk of code that was using SPFieldLookupValues like:
SPFieldLookupValue lookup = new SPFieldLookUpValue(listItem["Field"].ToString());
int itemID = lookup.LookupId;
string ...
7
votes
1answer
5k views
How to get a SPFieldLookupValue from an SPListItem?
When you get an SPListItemCollection from a SPList.GetItems(SPQuery) request, and the items have SPFieldUser or SPFieldLookup fields, what is the sexy way to get typed values, not the ...
