0

I have Rest API URL below:

https://DevSite/_api/web/lists/getbytitle('Test')/items?$select=AuthorId,Author/FirstName,Author/LastName,Author/Id,Author/EMail&$expand=Author

It is not working, it shows error:

The query to field 'Author/FirstName' is not valid.

enter image description here

I'm trying to get Author first and last name using REST API.

I have checked that there is items in list, everything is ok, still shows error

1
  • Hi, I tried rest endpoint its working on SharePoint 2013 on-premises ,Can you let us know for which Share Point are you trying?
    – Sunil Sahu
    Sep 29, 2017 at 13:14

1 Answer 1

1

Refer below REST API URL :

https://DevSite/_api/web/lists/getbytitle('TestList')/items?$expand=Author&$select=Author/FirstName,Author/Id,Author/LastName

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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