The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hello @harryK9 ,
Based on my test, I am able to get driveitem-preview, in the same way mentioned in the question by using search-concept-files to get the driveItem.
Below is my test result,
Is the file present in default library?
- Are you able to get the file with
GET sites/{site-id}/drive/items/{item-id} - If the file is present in library other than, can you check if
GET sites/{site-id}/drives/{drive-id}/items/{item-id}andPOST sites/{site-id}/drives/{drive-id}/items/{item-id}/previewsee what is the response
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".