Graph api - 最近的文件 [英] Graph api - recent files

查看:55
本文介绍了Graph api - 最近的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


团队。



我们正在开发Office365和Sharepoint集成应用程序。


应用程序是关于文档管理,Sharepoint组是关键概念。



其中一个主要功能是列出组和用户的最近文件。


For我们正在使用此查询: / groups / {groupId} / drive / items / root / children


为了获取用户的最新文件,我们使用 查询:/ me / drive /最近



问题如下:从第一个查询开始,对于Group的最近文件工作正常并返回正确的结果,第二个查询只返回上传到OneDrive的文件,但不返回上传到Documents
库的文件。


是否有可能从&nbs中的所有组(文档库)获取最近的文件p;单个查询?



请你看看这个,并就如何解决这个问题向我们提供一些建议。



提前致谢



最好的问候,


米兰




解决方案

您好


根据下面的主管gideline没有直接终点。


https:// docs .microsoft.com / zh-CN / onedrive / developer / rest-api / api / drive_recent


根据我的知识,一个文档库代表一个驱动器,我担心实际查询整个服务器场的性能。


目前,您可以通过搜索过滤一个库,如下所示(test2是测试用户)。


https://graph.microsoft.com/beta/sites/domain.sharepoint.com,siteid/drives/driveid/root/search(Q = 'TEST2')?


orderby = createdDateTime desc


更重要的是,您可以在下面的uservoice中提交反馈。


https://officespdev.uservoice.com/


这是一个供客户提供有关Microsoft Office产品反馈的地方。更重要的是,如果其他客户对其投票的反馈很高,那么微软产品团队将考虑将其纳入b $ b b在将来设计下一个版本时。 


最好的问候,



Hi, team.

We are working on the Office365 and Sharepoint integrations application.

The application is about document management, and the Sharepoint groups are the key concept.

One of the main functionalities is to list Recent files for Group and for User as well.

For fetching recent Group files, we are using this query: /groups/{groupId}/drive/items/root/children

For fetching recent files for User, we are using the query: /me/drive/recent

The problem is following: Since the first query, for recent files for Group works fine and returns correct results, the second query returns only files uploaded to OneDrive but not those uploaded to Documents library.

Is there any possibility to get recent files from all groups (Documents libraries) in a single query?

Could you please take a look at this and provide us with some advice on how to overcome this issue.

Thanks in advance.

Best regards,

Milan


解决方案

Hi,

No directly endpoint based on officed gideline below.

https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_recent

Per my knowledge, one document library represents a drive, I’m afraid the performance to query whole farm actually.

Current, you could filter one library by search as below(test2 is a test user).

https://graph.microsoft.com/beta/sites/domain.sharepoint.com,siteid/drives/driveid/root/search(q='test2')?


orderby=createdDateTime desc

What’s more, you could submit your feedback in uservoice below.

https://officespdev.uservoice.com/

It is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future. 

Best Regards,

Lee


这篇关于Graph api - 最近的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆