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
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?
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.