Forum Discussion

mschlue's avatar
mschlue
Copper Contributor
Aug 10, 2022

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, the last modify date and even custom fields, but none like file size and file type. We figured that fields that are meant to be readOnly won't be delivered with the calls we make. But we also don't want to make more calls than necessary to get the attributes. 

 

Is there a way or call to get all attributes a file has at once?

2 Replies

Resources