问题描述
我正在尝试使用特定模板从 Group 创建团队。下面是我的 API 调用。
var team = new Team
{
displayName = "My Class Team",Description = "My Class Team’s Description",AdditionalData = new Dictionary<string,object>()
{
{"[email protected]","https://graph.microsoft.com/beta/teamstemplates('educationClass')"},{"[email protected]","https://graph.microsoft.com/beta/groups('89c3399b-3722-438c-b106-55a2c7eccf2a')"}
}
};
var teamCreated = await graphClient.Teams
.Request()
.AddAsync(team);
在类型为“团队”的对象上找不到成员“[email protected]”。 路径 '['[email protected]']',line 1,position 202.,Could not find “团队”类型的对象上的成员“[email protected]”。小路 '['[email protected]']',position 306.,Could not find member “团队”类型的对象上的“@odata.type”。路径 '['@odata.type']',行 1,位置 380.,Could not find member '[email protected]' on object “团队”类型。路径 '['[email protected]']',第 1 行,位置 435.,无法在“团队”类型的对象上找到成员“[email protected]”。路径 '['[email protected]']'
我已经检查并应用了 this 帖子中提到的修复,但仍然无法解决问题。