Microsoft Teams Graph API: private Sharepoint site creation
Ilya Laschenko
31
Reputation points
Hi all,
I'm developing integration tests with Microsoft Teams and Sharepoint sites and found an odd issue with the creation of private teams channel.
The flow is following:
- Create Team(it automatically creates 'General' public channel and corresponding Sharepoint site)
- Add document to the 'General' channel
- Create a private channel for this team
- Add document to the private channel - on this step I found that there is no FileFolder via GraphApi(client.Teams[teamId].Channels[channelId].FilesFolder.GetAsync())
The behavior, that I'm observing, is when you create a team and a private channel in Graph then the private channels drive and SharePoint site is never generated until you actually manually visit the private channel
The question is following:
Is there any way to trigger the creation of a private SharePoint site after the creation of a private channel via Graph API?
Sign in to answer