When searching for drive items by path in the search api some drive items are missing driveID

David Cole 0 Reputation points
2024-07-18T16:47:40.7566667+00:00

A large portion of documents in some of my SharePoint sites are missing driveID when searched for in the graph search api. For these documents I tried to create a download link for them from sharepoint using their listID + listItemID (ex: https:/####.sharepoint.com/sites/####/_api/Web/Lists('####-#####-#####')/Items(####)/File/$value), but I am getting a 404 from that link for only files that do not have a driveId. I have not been able to find any information or other people who are experiencing this issue so any information on how to fix this issue would be appreciated.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,940 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.