[英]Teams API: How to get team object immediately after the object is created?
I'm using the documentation for create team in Microsoft Graph .我正在使用Microsoft Graph 中创建团队的文档。 I create an object of team.
我创建了一个 object 的团队。 My problem is that I can't get back the object of my team after the request, in order to take the id.
我的问题是请求后我无法取回我团队的 object,以便取回 id。
This is the code I wrote:这是我写的代码:
var team = new Team
{
DisplayName = "Name",
Channels = new TeamChannelsCollectionPage()
{ },
Members = new TeamMembersCollectionPage()
{
new AadUserConversationMember
{
Roles = new List<String>()
{
"owner"
},
AdditionalData = new Dictionary<string, object>()
{
{ "user@odata.bind",
$"https://graph.microsoft.com/v1.0/users('{ownerId}')" }
},
}
},
AdditionalData = new Dictionary<string, object>()
{
{ templateBind, urlTeamsApiStandard },
}
};
var createdTeam = await graphClient.Teams //Here I get null
.Request()
.AddAsync(team);
How to get back the object?如何取回object?
Moving from comments section to Answer从评论部分移动到答案
We got the below update from team - The Graph team doesn't return any response as part of this API. The API returns a Location response header that should be used to check the status of the async operation我们从团队那里得到了以下更新——Graph 团队没有返回任何响应作为此 API 的一部分。API 返回一个位置响应 header,该响应应该用于检查异步操作的状态
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.