我创建了一个 Microsoft 团队以与导入 APIS 一起使用:
(https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams)
Team newTeam = new Team()
{
DisplayName = "TestMigration1",
Description= "TestMigration with Import Api",
AdditionalData = new Dictionary<string, object>()
{
{ "[email protected]", "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" },
{ "@microsoft.graph.teamCreationMode", "migration" }
},
CreatedDateTime = new DateTime(2020, 01, 01)
};
问题是:如何确定团队是否仍处于导入模式? 我在迁移模式下创建了一个团队,然后重新阅读它。 返回的Team在附加数据中没有返回@microsoft.graph.teamCreationMode,但我知道它处于迁移模式,因为我没有发送CompleteMigration Post。