本文介绍了GraphAPI 中的 createChannel 有时会导致未创建相应的 Sharepoint/OneDrive 文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,通过 Graph API 创建通道经常会导致未创建相对的、对应的 Sharepoint 文件夹.

Currently the creation of a channel through the Graph API frequently results in the relative, corresponding Sharepoint folder not being created.

当使用 Graph API 创建通道时,响应表明创建通道成功,但在转到文件选项卡时显示:

When using the Graph API to create a channel the response indicates creating the channel was a success, but when going to the files tab it shows:

找不到您的文件,正在处理以恢复它们."

单击 Teams UI 中的文件选项卡后,最终会创建文件夹(几分钟后).

After having clicked on the files tab in the Teams UI, the folder is created eventually (after a couple of minutes).

但由于自动化流程依赖于频道文件夹,我们不想让用户在其他流程继续之前手动打开团队.

But because automated processes depend on the channel folder, we don’t want to ask the user to manually open the team before the other processes can continue.

所以:团队创建:Ok -> 频道创建:Ok-ish(但缺少链接文件夹)-> One-drive/share point 文件夹,频道名称:未创建

So: Team created: Ok -> Channel created: Ok-ish (But missing the linked folder) -> One-drive/share point folder, with the name of the channel: Not created

有时文件夹已正确创建,但最近更常见的是,直到用户在 Teams 客户端中打开文件选项卡后,它才会创建(甚至在等待 3-4 天后也不会创建).

Sometimes the folder is created properly, but lately more often it is not created (Not even after 3-4 days of waiting) until the user opens the files tab in the Teams client.

这种行为是新的,因为它在一周前还可以完美运行.是否有已知的解决方法?

This behaviour is new since it worked flawlessly until a week ago. Is there a known workaround for this?

我们遵循通过 Graph API 创建频道的默认文档,如 Microsoft Graph 参考

We're following the default documentation for creating a channel via Graph API as described in the Microsoft Graph Reference

最好的问候,多米尼克

推荐答案

这是设计使然,或者说 SPO 配置的限制是异步的,因为创建团队无需等待 SPO 站点配置完成即可成功.在那些没有文件夹创建的 SPO 之前配置通道的情况下.恢复机制是访问通道中的文件选项卡.

This is by design or rather limitation of SPO provisioning is async as in create team succeeds without waiting for SPO site provisioning completes. In those scenarios when channel get provisioned before SPO that get created without files folder. The recovery mechanism is accessing files tab in the channel.

目前没有任何解决方案来检查配置是否完成.但是,有一项功能要求提供 API 来提供类似于客户端上发生的情况(单击文件"选项卡).我们对此没有任何预计到达时间.

Currently there isn't any solution to check if provisioning is completed. However, there is a feature ask to provide an API to provision similar to what happens on the client (clicking on Files tab). We do not have any ETA on this.

这篇关于GraphAPI 中的 createChannel 有时会导致未创建相应的 Sharepoint/OneDrive 文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 18:03