简体   繁体   English

团队:我们如何为特定频道中的每个新帖子设置全局通知?

[英]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.

相关问题 在团队中创建新频道时的 Microsoft 图形通知 - Microsoft graph notification when new channel created in teams 使用深层链接将消息发布到特定的 MS Teams 频道 - Post a message to a specific MS Teams Channel using deep link 渠道全球管理员 Microsoft Teams - Channel Global Admin Microsoft Teams 如何让我的机器人向Microsoft Teams频道发布消息? - How can I get my bot to post a message to a Microsoft Teams channel? 我们可以为 Microsoft Teams 的应用程序创建自定义通知弹出窗口吗 - Can we create a custom notification popup for Microsoft Teams's application 我可以设置计时器以在 MS Teams 频道中关闭吗? - Can I set a timer to go off in an MS Teams channel? 在 MS Teams 中创建新团队时,我们如何从 MS Teams 触发事件(并调用外部应用程序)? - How can we trigger an event from MS Teams (and call an external app) when a new team is created in MS Teams? 如何向 Teams 频道中的用户发送文件? - How can I send a file to a user in the Teams channel? 除了个人用户和团队频道,我们可以从 bot 框架向谁发送消息(使用自适应卡) - Apart from Individual users and Teams channel , whom can we send message (with Adaptive card) from bot framework 使用App将消息发布到Microsoft Teams Channel - Post Message to a Microsoft Teams Channel using App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM