Home

Send messages to Team from external app

%3CLINGO-SUB%20id%3D%22lingo-sub-755929%22%20slang%3D%22en-US%22%3ESend%20messages%20to%20Team%20from%20external%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755929%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20building%20a%20web%20app%20that%20needs%20to%20send%20instant%20messages%20to%20people's%20Teams%20channel.%20I%20tried%20to%20use%20the%20webhook%20first%20but%20it%20requires%20a%20business%2Fschool%20account.%20However%20we%20need%20this%20to%20work%20for%20personal%20accounts%20too.%20So%20I%20changed%20to%20use%20the%20REST%2FGraph%20API.%20I've%20managed%20to%20grab%20access%20token%20using%20oauth2.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20point%20out%20which%20API%20should%20I%20be%20using%20for%20getting%20people's%20connected%20teams%20and%20channels%20and%20sending%20messages%20to%20them%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-755929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-756385%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20messages%20to%20Team%20from%20external%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756385%22%20slang%3D%22en-US%22%3EHave%20you%20seen%20the%20documentation%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fteams-api-overview%3Fview%3Dgraph-rest-1.0%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fteams-api-overview%3Fview%3Dgraph-rest-1.0%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-758098%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20messages%20to%20Team%20from%20external%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758098%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20I%20have.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20trouble%20I'm%20getting%20is%20whenever%20I%20make%20a%20request%20to%20%2Fme%2FjoinedTeams%20(with%20the%20correct%20access%20token%20obtained%20via%20oauth)%2C%20I%20receive%20an%20error%20saying%26nbsp%3BResourceNotFound.%20Do%20you%20have%20any%20idea%20why%3F%20The%20account%20I%20used%20for%20testing%20doesn't%20have%20office%20365%20subscription%20but%20has%20Microsoft%20Teams%20activated.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
leli2000
New Contributor

Hello,

 

We are building a web app that needs to send instant messages to people's Teams channel. I tried to use the webhook first but it requires a business/school account. However we need this to work for personal accounts too. So I changed to use the REST/Graph API. I've managed to grab access token using oauth2.

 

Can you please point out which API should I be using for getting people's connected teams and channels and sending messages to them?

 

Thanks,

2 Replies

@adam deltinger 

 

Yes I have.

 

The trouble I'm getting is whenever I make a request to /me/joinedTeams (with the correct access token obtained via oauth), I receive an error saying ResourceNotFound. Do you have any idea why? The account I used for testing doesn't have office 365 subscription but has Microsoft Teams activated. 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Discussion - Updating our interface with Fluent touches
Elliot Kirk in Discussions on
102 Replies