Reputation: 61
I am creating Teams from Groups by calling the Graph Api as described in the docs. When I view a channel on newly created Team in Teams, some SharePoint related actions aren't accessible:
At this point the corresponding SharePoint site does exist, as I can access it directly.
When you create a Team through Teams, none of the above issues occur.
A Teams user can get round this by visiting either the 'Files' or 'Wiki' tabs. Once you've clicked on one of these tabs, then the above issues don't occur anymore. My guess is that by visiting one of the tabs Teams makes a call that sets up or synchronises SharePoint with the channel in Teams. Is there a Graph/SharePoint or otherwise Api endpoint I can call that will do the same?
Below is a few other things I've tried/found:
Upvotes: 2
Views: 2041
Reputation: 41
In existing Teams, we've seen this error: "We can't get your files. We're working on getting them back."
appear for one user while other users could confirm there were no missing channel folders or files, and there was no obvious root cause.
In each case, it went back to normal after a reboot. It's conceivable that simply restarting Teams or clearing the cache would also fix the problem, but the reboot is what made a difference for them, and we haven't been able to reproduce the error and test.
Upvotes: 0
Reputation: 61
I raised a support ticket with Microsoft and had a call regarding the issue, and their explanation was as follows.
The issue is due to the General folder not being created in Sharepoint yet. This can take up to 48 hours (although I have experienced it taking longer). If you don't want to wait 48 hours you can make a call to Graph (see below) that will force the General channel folder to be created immediately.
POST https://graph.microsoft.com/v1.0/groups/063589dc-7260-4a34-996e-317f7b036c38/drive/root/children
{
"name": "General",
"folder": {},
"@microsoft.graph.conflictBehavior": "replace"
}
I haven't used this solution in production yet, but this works for me when making calls through Graph Explorer, which it didn't before.
Upvotes: 3