Forum Discussion
How to send activity feed notification that is tied to a card notification
- Dec 22, 2022
ingmaramzan - You can use both, but to Avoid duplicate notifications from bot messages and activity feed notifications.
It is not possible; we cannot bind the card to notification.
sample link-https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-activity-feed/csharp
ingmaramzan -Microsoft Teams displays notifications in both activity feed and toast formats. Users receive notifications from multiple sources across chats, channels, meetings, or other apps. You can use either activity feed notifications or bot framework messages, but don't use both notification types. Provide appropriate titles and descriptions for your Activity Types. Use short titles, such as @mention and Announcements.
Hi Sayali-MSFT, thanks for the answer. What is the reason that I can't send both activity and bot framework notifications?
According to this doc [https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-and-group-conversations?tabs=typescript#add-mentions-to-your-messages], when sending a message via bot framework I can also make it an activity notification by mentioning the user by including <at>{userId}</at> in the message. Is it not possible to do the same while sending a card notification?
So, in my case, I want to send the user a card message and have that message show up in the user's activity feed. Is something like this possible?
- Sayali-MSFTDec 22, 2022
Microsoft
ingmaramzan - You can use both, but to Avoid duplicate notifications from bot messages and activity feed notifications.
It is not possible; we cannot bind the card to notification.
sample link-https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-activity-feed/csharp- Sayali-MSFTDec 23, 2022
Microsoft
@ingmaramzan - Could you please share your valuable feedback via Microsoft Teams Developer Feedback link.