microsoft graph BETA 使用 isfavoritebydefault 添加 Microsoft Teams 频道 [英] microsoft graph BETA add Microsoft Teams channel with isfavoritebydefault
问题描述
我正在尝试使用 Microsoft Graph Beta API 在 Microsoft Teams 中创建频道.在文档中,它说频道实体有一个属性 IsFavoriteByDefault
表示
频道是否应自动标记为所有人的收藏"团队成员.默认值:假.
实际设置这个属性的值有什么特别的吗?
有人找到解决方案了吗?我添加了 isFavoritebyDefault 但我看到这只是为运行流程的所有者或用户而不是为团队的所有成员添加的.下面提供代码供参考.
{要求": [{"url": "/teams/{varTeamID}/channels",方法":发布",身份证":1,标题":{内容类型":应用程序/json"},身体": {"displayName": "{varChannelName}","description": "此频道存在于",isFavoriteByDefault":真}}]}
I am trying to create channels in Microsoft Teams using the Microsoft Graph Beta API. In the docs, it says that the channel entity has a property IsFavoriteByDefault
that indicates
Whether the channel should automatically be marked 'favorite' for all members of the team. Default: false.
https://docs.microsoft.com/en-us/graph/api/resources/channel?view=graph-rest-beta#properties
However, trying the Graph Beta API (either with custom call or the Graph Explorer) and whatever value I pass to this property true
or false
, this property remains null
.
Is there anything special to do to actually set the value of this property ?
Has anyone found a resolution to this? I added the isFavoritebyDefault but I am seeing this only adds this for the owner or user who runs the flow not for all members of the team. Code is provided below for reference.
{
"requests": [
{
"url": "/teams/{varTeamID}/channels",
"method": "POST",
"id": 1,
"headers": {
"Content-Type": "application/json"
},
"body": {
"displayName": "{varChannelName}",
"description": "This channel is in existence for",
"isFavoriteByDefault": true
}
}
]
}
这篇关于microsoft graph BETA 使用 isfavoritebydefault 添加 Microsoft Teams 频道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!