01-18-2019 02:38 AM
01-18-2019 02:38 AM
we have an external ASP.NET 4.7 App (in Azure App Service), which should send Messages/Cards to one specific User in Teams.
I managed to send Cards to Channels via the Connector/WebHook, but cannot target an specific User.
How can i do this / which Services are needed?
(pleas as simple as possible :) )
01-18-2019 04:51 AM
You could use the Activity feed API in Microsoft Graph in order to send a message/card to a specific user. More info can be found here:
"Additionally, you can also send personal chat messages into the feed as preview cards summarizing your app's activity."
01-18-2019 05:15 AM
01-18-2019 05:27 AM
As I've understood you should create a bot, using the Bot Framework, in your Application. You should add this app to Teams using an App manifest. The bot should be a Notification only bot as described here:
Have you already added your application as an App to Microsoft Teams? This way it should be able to start a proactive conversation with a user from your bot, once your app is added to a team or when installed by user (personal app).
01-18-2019 05:34 AM
01-18-2019 05:43 AM
Would you mind to describe your scenario you have in mind in more detail? I would like to address this scenario to Microsoft, in order to look if there are other possibilities. We want you to use Teams! :)
Tnx in advance!
01-18-2019 05:49 AM
01-22-2019 01:31 AM
I got some answers back and at the moment the only option is to use a bot for this. And more specifically a notifications only bot, as I mentioned before. I don't think it would be that a big of an effort to develop such a bot.
01-22-2019 01:35 AM
01-22-2019 03:12 AM
I think you can use this blog as a starting point:
The only challenge I think you will have, is that you will need a 1:1 conversation or a conversation from a team/channel with your bot first from the user who will need to be notified. This because you will need a starting chat reference as stated in the notification only bot documentation:
personalscoped notification only bot since the user cannot message your notification only bot in a personal chat. This means that you can't receive a
conversationUpdateevent that would provide you with the necessary details to send a notification. Your notification only bot will only function correctly if it supports the
teamscope and is added to a team. In the team setting, your bot will have access to the necessary information to either send a notification to a channel or privately to a user.