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 check that there is items in list, everything is ok still shows error

  • 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 '17 at 13:14
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, privacy policy and cookie policy

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