I used rest api to get FirstName and LastName of a user field.

The code hasn't been updated for a long time now and it was working fine until last month, but now it doesn't seem to work

Here is the api call


Below is the error that I am getting

-2146232832, Microsoft.SharePoint.SPException Cannot get value for projected field Director_x005f_FirstName.

The expand works fine when I expand Title and EMail fields

  • You should check if all the referenced users have the value in FirstName property. – Damjan Tomic Jan 7 at 18:22

Your Answer

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

Browse other questions tagged or ask your own question.