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:
- Select 'Get email address' from the channel (via the 3 dots menu), I receive the following message. "We're still setting up your team. Please try again later." By querying the Graph Api channels endpoint I can see that the email property is empty.
- Select 'Open in SharePoint' from the channel (via the 3 dots menu in the top right), I receive the following message "We are setting up your file directory. Try refreshing the page after a few minutes or check back later."
- Go to the 'Files' tab, I receive the following message "We can't get your files. We're working on getting them back."
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:
- The issues are still a problem after a significant amount of time. (I always see this issue when a Team is created through Graph from 20 seconds to 3 months after creation.)
- I have tried using the newer beta endpoint to create the Team, I get the same result.
- By querying Graph I have compared the properties of a Group, Team and Channels when the Team is created through Teams with the properties of those when the Team is created through through Graph. The properties are identical, apart from the expected identifiable information (ids, names etc).
- The issue occurs when viewing the channel in both the Teams web and desktop clients.