问题
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 ?
回答1:
Thanks for reporting this. How are you creating the channel? We added this property as part of the team templates feature, could be we didn't fix all the other paths such as POST /teams/id/channels.
回答2:
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
}
}
]
}
来源:https://stackoverflow.com/questions/55136212/microsoft-graph-beta-add-microsoft-teams-channel-with-isfavoritebydefault