[英]Teams: How can we set a a global notification for every new post in a specific channel?
in our company we use Microsoft Teams.在我们公司,我们使用 Microsoft Teams。 We have a team "All" and in it a channel "Broadcast".我们有一个团队“All”,其中有一个频道“Broadcast”。 How can we set it centrally so that all employees receive a notification when a new post is written?我们如何集中设置它,以便所有员工在撰写新帖子时都能收到通知? Currently we write "@All" at the beginning of the text.目前我们在文本的开头写“@All”。 But I'm sure this can be done more elegantly.但我相信这可以做得更优雅。
I am looking forward to your tips.我期待着你的提示。
Many thanks and greetings非常感谢和问候
Frank坦率
You can @mention the channel, so that all the members will get notified.您可以@mention 频道,以便所有成员都会收到通知。 You can achieve so using Graph API.您可以使用图 API 实现这一点。
POST
https://graph.microsoft.com/beta/teams/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/channels/19:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@thread.tacv2/messages
发布POST
https://graph.microsoft.com/beta/teams/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/channels/19:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@thread.tacv2/messages
{
"body": {
"contentType": "html",
"content": "Hello World <at id=\"0\">General</at>"
},
"mentions": [
{
"id": 0,
"mentionText": "General",
"mentioned": {
"conversation": {
"id": "19:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@thread.tacv2",
"displayName": "General",
"conversationIdentityType@odata.type": "#Microsoft.Teams.GraphSvc.conversationIdentityType",
"conversationIdentityType": "channel"
}
}
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.