Forum Discussion
Notifications for custom applications
Hello Everyone,
I have created an app using the Developer portal and hosted it for my domain. App loads data from an external system where the web application is hosted.
The app works fine when I am on that particular app but when I move to the Calls or Chats tab the connection is getting closed. At this point, if anyone is trying to send some information it doesn't come up as the connection is closed.
Is there any way to make a rest API call from an external system to teams and notify the user or the app that something is new, please have a look.
I went through graph API but in that case, we need to have a user who will be used to send a request to another user.
Suggestions will help to evaluate the possible options.
Thanks,
Pratap
Based on the error it seems like the app is not installed in the Teams. Could you please follow this document and sample to set it up correctly.
8 Replies
- ChetanSharma-msft
Microsoft
1) One way is to send an activity feed notification to a user using application permissions like below:
https://docs.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification?view=graph-rest-1.0&tabs=http
2) Other way is to create a Incoming Webhooks but it allows external applications to share content in Microsoft Teams channels but not personally to specific person:
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook- Pratapkarn2186Copper Contributor
Thanks, Chetan for your reply.
For using the sendactivitynotification we will need a user with O365 license.
Is there any alternate way where we will not need a licensed user ?- Meghana-MSFTBronze Contributor
If you are using Teams then I think you already have O365 license.
Also, you need Azure Subscription to create Azure App registration with application permission to call the specific Graph API.