How to get recently accessed OneDrive for Business files?

我是研究僧i 提交于 2019-12-08 07:12:43

问题


I would like to get a list of both opened (without edit) and modified files.

I looked at /Recent api from Microsoft Graph and it does not return the recently viewed files for OneDrive Business, but only the modified files.

I also looked at: https://graph.microsoft.com/beta/me/insights/used

This api on the paper does exactly what I needed, it returns lastAccessedDateTime

 "lastUsed": {
                "lastAccessedDateTime": "2018-05-03T15:31:53.913Z",
                "lastModifiedDateTime": "2018-04-27T14:50:04.066Z"
            },

BUT... The results it returns are incomplete.. It does not return the latest files I opened. Hopefully these issues will be fixed once it is released in v1.0.

Is there a way to get a list of recently accessed, opened files in One Drive for Business either using Microsoft Graph or One Drive / Sharepoint api s ?

来源:https://stackoverflow.com/questions/50340456/how-to-get-recently-accessed-onedrive-for-business-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!