microsoft graph BETA add Microsoft Teams channel with isfavoritebydefault

和自甴很熟 提交于 2020-02-23 03:48:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!