Forum Discussion
ingmaramzan
Dec 19, 2022Copper Contributor
How to send activity feed notification that is tied to a card notification
Hi, All. I'm developing a Teams Add-On app that uses Adaptive Card to notify the user about the activity and interaction between users that happened in the App. I'm sending this notification via a ...
- 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
Sayali-MSFT
Microsoft
Dec 21, 2022ingmaramzan -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.
- ingmaramzanDec 22, 2022Copper Contributor
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 [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.