Forum Discussion
mschlue
Aug 10, 2022Copper Contributor
SharePoint API won't return readOnly fields
Hello everyone, we try to get all the attributes from a file in SharePoint using the API. When we call /_api/web/lists(...)/items and filter for the wanted file we get all attributes like name, id, ...
ganeshsanap
Aug 10, 2022MVP
mschlue Try endpoint like below & see if it works for your requirements:
https://contoso.sharepoint.com/sites/work/_api/web/lists/getbytitle('Documents')/items(10)/FieldValuesAsText
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.