Automatic teams creation: We can't get your files (We're working on getting them back)

Ivor Denham-Dyson 21 Reputation points
2021-01-05T12:38:59.273+00:00

Hi,

I wrote a script to create roughly 400 Microsoft teams every month using Microsoft graph. However around half of the teams I create don't have file space allocated to them until I reload the files tab or click 'open in sharepoint'. Since I am trying to automate the process this solution does not work for me.

This causes the problem of files not being automatically uploaded to the team upon creation.

I've inspected several race conditions in my script and wait for a OK 200 when 'pinging' the drive before I try to upload files, unfortunately for some teams this 200 never arrives.

Any suggestions?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,797 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,907 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,061 Reputation points Microsoft Vendor
    2021-01-06T01:53:33.133+00:00

    @Ivor Denham-Dyson ,

    As we are mainly responsible for general issue of Microsoft Teams, your question which is involved in development is not supported by us. I would remove the office-teams-windows-itpro tag.

    Meanwhile, I found a script which provide the ability to create a Microsoft Team using Microsoft Teams PowerShell Module. You must install the latest version of the module from PowerShell Gallery. The script uses a CSV File as input. For more information, please refer to this link: https://gallery.technet.microsoft.com/scriptcenter/Create-using-CSV-d8294bc9.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Manish-MSFT 256 Reputation points
    2021-01-06T09:29:32.86+00:00

    @Ivor Denham-Dyson , Hi could you please list out repro steps and graph api that you are calling. This will us to quickly resolve this issue. Thanks.

    0 comments No comments