1

I'm doing something very similar to this question; trying to get the value of a lookup field using the Sharepoint .NET client API. I can get the Id, but not the value. For some reason, the value is always null.

item["Company"]
// Microsoft.SharePoint.Client.FieldLookupValue

And this:

((FieldLookupValue)item["Company"]).LookupId;
// 3334

But then this:

((FieldLookupValue)item["Company"]).LookupValue;
// null

Does anyone have any ideas?

EDIT: While writing this I figured out the problem was permissions, I'll write an answer in case it helps anyone else.

2

The Sharepoint App needs permissions to the list used in the lookup column as well as the list you're querying or it can only retrieve the ID and not the name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.