How to Get Value from a Lookup Field using CSOM
Here is a good example:
var fieldToLook = oListItem["LookupSiteColumn"] as FieldLookupValue;
if (fieldToLook != null)
{
var lookupValue = fieldToLook.LookupValue;
var lookupID = fieldToLook.LookupId;
}
Cheers
No comments:
Post a Comment