microsoftgraph / msgraph-sdk-serviceissues

Tracks service issues for follow up.
5 stars 0 forks source link

FilesFolder is not created automatically for new created private channels #30

Open habex-ch opened 4 years ago

habex-ch commented 4 years ago

When I create a new private channel and then try to get the FilesFolder, it is always null. Even a few hours after creation, the FilesFolder is still null. It will only be created, when a user manually clicks on the Files tab in Microsoft Teams.

Expected behavior

One of the following behavior is expected:

Actual behavior

FilesFolder always stays null. There is no possibility to get access to the FilesFolder of a private channel without manual interaction. E.g. when you want to create a new private channel and then create a folder structure like that:

Steps to reproduce the behavior

  1. Create new Channel

    Channel channel = await graphServiceClient.Teams[teamId].Channels.Request().AddAsync(new Channel
    {
    DisplayName = "My Private Channel",
    MembershipType = ChannelMembershipType.Private
    });
  2. Get FilesFolder of the newly created channel

    DriveItem filesFolder = await graphServiceClient.Teams[teamId].Channels[channel.Id].FilesFolder.Request().GetAsync();
  3. Further operations with the FilesFolder (not possible due to "filesFolder" is always null)

    string driveId = filesFolder.ParentReference.DriveId;
    DriveItem createdFolder = await graphServiceClient.Drives[driveId].Items[filesFolder.Id].Children.Request().AddAsync(new DriveItem
    {
    Name = "My Folder",
    Folder = new Microsoft.Graph.Folder()
    });

Other mentions

It seems, that other user experience the same issue: https://techcommunity.microsoft.com/t5/microsoft-teams/microsoft-teams-channel-does-not-create-sharepoint-folder-for/m-p/1609963/highlight/true#M69676

habex-ch commented 3 years ago

Any news on this?

triple888 commented 3 years ago

+1 on this issue.

The Private Channel can be created via Graph however its associated SharePoint site (and underlying drive) is not provisioned until manually triggered within the Teams UI.

Any workarounds here to programmatically trigger the creation of the site?

MIchaelMainer commented 3 years ago

@nkramer Do you have insight to share on this scenario?

Please consider x-posting to https://docs.microsoft.com/en-us/answers/topics/microsoft-graph-teams.html. Link back to this issue as well.

MIchaelMainer commented 3 years ago

The work to properly support this scenario is planned for next quarter.

habex-ch commented 3 years ago

Do it still have to x-post this?

MIchaelMainer commented 3 years ago

@habex-ch No, need to x-post.

Luunk commented 3 years ago

Any updates on this? It´s quite annoying trying to automate when the filesfolder is not created when creating a new channel, unless a user is trying to access the file area.

habex-ch commented 2 years ago

@MIchaelMainer Any news on this issue

petrhollayms commented 6 months ago

Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage:

https://aka.ms/msgraphsupport or directly https://aka.ms/askgraph

For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!

Note: We will close this repository on April 19, 2024.

habex-ch commented 6 months ago

I created the question in Microsoft Q&A: https://learn.microsoft.com/en-us/answers/questions/1656018/filesfolder-is-not-created-automatically-for-newly