Forum Discussion
Get items from SharePoint List (Model Usage) via SharePoint Rest API (GetItems)
Dear Support,
I have a question about a SharePoint list "Model Usage".
=============
Here are my questions:
1. For the list "Model Usage", is there any internal issue (Sharepoint side) when getting the items via SharePoint API? I found that the behaviour is not the same as other list.
2. Can you suggest a correct way to get the items from this "Model Usage" list via SharePoint API (GetItems)
=============
I tried to get the items from the list "Model Usage", I found that the server side will return the following error, but it's normal (no error) for other list.
Here's my request message:
-----
https://{tanent_name}.sharepoint.com/sites/trailaddress/_api/web/lists('2aa87e02-0df5-44dd-8e42-cfe88aed2dc0')/GetItems?$expand=FieldValuesAsText,File,File%2fProperties&$select=FileSystemObjectType,Id,FileRef,FileLeafRef,Modified,HTML_x0020_File_x0020_Type,Title,GUID
-----
Here's my CAML query in the request body
-----
-----
===
In fact, I tried another test with "items" API. The behaviour is also strange. Here's the request and the response message.
Request:
https://ahsay.sharepoint.com/sites/trailaddress/_api/web/lists('2aa87e02-0df5-44dd-8e42-cfe88aed2dc0')/items
Response: