Forum Discussion
Make HTTP request from Teams to external url
Thanks for your reply.
I'll give some context to what i'm trying to implement:
1 - From an external service i trigger a Incoming Webhook ( https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook ) to notify a channel in MS-Teams (I also will try to use the ActivityFeed ( https://docs.microsoft.com/en-us/graph/teams-send-activityfeednotifications#:~:text=The%20Microsoft%20Teams%20activity%20feed,this%20functionality%20to%20your%20apps )to do this, as i find webhooks less flexible, but have yet to try).
2- In Teams, and when a channel/user gets a notification from my external service, I want to be able to reply to this notification. The reply would need to make an HTTP request back to my external service, trough its API and trigger an action there.
So, for this step 2, as far as i understand I have basically 2 options:
- Outgoing Webhook (not the solution i want, because my external service can't return anything back to Teams) ( https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-outgoing-webhook?tabs=urljsonpayload%2Cdotnet )
- Having a Teams app and use a bot. This seems to be the best option, as i think i can build a bot using the BotFramework which can make HTTP requests from Teams to my webservice ( https://docs.microsoft.com/en-us/composer/how-to-send-http-request?tabs=v2x )
My problem is that i can't seem to be able to use AzureBot in the Azure Portal to register the bot so i can use it in a Teams app, so i wanted to know if there is another way to achieve what i need some other way?
I'd appreciate any help with my requirements and/or feedback about my approach.
Thanks
__jaco - you can register your bot without an Azure subscription. You can do that directly from App Studio. And you can find more detail about that process https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/app-studio-overview#bots.
Thanks,
Meghana
----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via https://aka.ms/DevSupportFeedback) link. Click https://aka.ms/DevCommunityEscalationForm to escalate.
- __jacoFeb 09, 2022Copper ContributorI will try that and get back to you, thanks for your help
- Nisarg1997Dec 26, 2022Copper ContributorHey __jaco, I have a similar problem to solve as yours. I would like to know if you were able to find a solution and if so, what needs to be done.
Thanks.