SOLVED
Home

MS Teams Graph API : Cannot mention Team through POST /message API

%3CLINGO-SUB%20id%3D%22lingo-sub-562615%22%20slang%3D%22en-US%22%3EMS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-562615%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EMicrosoft%20recently%20supported%26nbsp%3B%3CSTRONG%3E%40mentions%3C%2FSTRONG%3E%20through%20its%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-chatmessage%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dcs%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%2Fmessages%3C%2FA%3E%20POST%20API.%3C%2FP%3E%3CP%3EIt%20is%20working%20when%20we%20mention%20%3CSTRONG%3Eusers%3C%2FSTRONG%3E%2C%20%3CSTRONG%3Echannels%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Ebots%3C%2FSTRONG%3E%20however%20it%20is%20not%20working%20when%20we%20mention%20a%20%3CSTRONG%3ETeam%3C%2FSTRONG%3E%20the%20returned%20error%20is%20%3A%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSTRONG%3E%3CSPAN%20class%3D%22response-meta-status-code%22%3E501%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20class%3D%22response-meta-status-code-desc%22%3ENot%20Implemented%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22error%22%3A%20%7B%3CBR%20%2F%3E%22code%22%3A%20%22UnknownError%22%2C%3CBR%20%2F%3E%22message%22%3A%20%22Failed%20to%20process%20request.%22%2C%3CBR%20%2F%3E%22innerError%22%3A%20%7B%3CBR%20%2F%3E%22request-id%22%3A%20%22cdfa50fe-98fe-4665-95d2-1ff7d55ea1d0%22%2C%3CBR%20%2F%3E%22date%22%3A%20%222019-05-13T08%3A07%3A31%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3E%26nbsp%3BCan%20someone%20please%20confirm%20if%20this%20is%20a%20bug%3F%20Is%20someone%20facing%20the%20same%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-562615%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECommunity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConversations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20%26amp%3B%20Tricks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-562677%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-562677%22%20slang%3D%22en-US%22%3EHmm%2C%20AFAIK%20%40mentions%20are%20in%20preview%20(%3CA%20href%3D%22https%3A%2F%2Fbit.ly%2F2UiVH89%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbit.ly%2F2UiVH89%3C%2FA%3E)%20so%20it%20may%20not%20be%20introduced%20yet%20-%20but%20its%20strange%20that%20the%20Team%20%40mention%20is%20supported%20in%20the%20Teams%20client%20but%20not%20through%20the%20API.%20I%20would%20raise%20on%20uservoice%20here%20with%20prefix%20of%20BUG%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F908686-bug-reports%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F908686-bug-reports%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-638263%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-638263%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F187228%22%20target%3D%22_blank%22%3E%40Nilay%20Dhamecha%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20hoping%20to%20get%20your%20input%20on%20my%20attempt%20to%20send%20a%20message%20to%20a%20channel%20and%20mention%20the%20channel%20or%20team%20name%20so%20all%20members%20and%20subscribers%20get%20a%20notification.%20I%20have%20tried%20using%20chatThreads%20and%20messages%20but%20neither%20results%20in%20a%20mention%20of%20the%20channel%20or%20team%20name.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20body%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3ErootMessage%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22body%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22contentType%22%3A%20%22html%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22content%22%3A%20%22%3CAT%20id%3D%22%5C%26quot%3B0%5C%26quot%3B%22%3EAutomated%20Tests%20Notification%20Channel%3C%2FAT%3E%20The%20automated%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bhealth%20check%20tests%20encountered%202%20failed%20tests.%22%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22mentions%22%3A%20%5B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22id%22%3A%200%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22mentionText%22%3A%20%22Automated%20Tests%20Notification%20Channel%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22mentioned%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22application%22%3A%20null%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22device%22%3A%20null%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22conversation%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22id%22%3A%20%22MY%20CHANNEL%20ID%20GOES%20HERE%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22displayName%22%3A%20%22Automated%20Tests%20Notification%20Channel%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22conversationIdentityType%40odata.type%22%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22%23Microsoft.Teams.GraphSvc.conversationIdentityType%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22conversationIdentityType%22%3A%20%22channel%22%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%5D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20looked%20at%20many%20sites%20who%20gave%20examples%20of%20how%20to%20use%20MENTION%20but%20I%20am%20not%20able%20to%20get%20the%20mention%20to%20show%20in%20the%20channel%20message.%20The%20message%20itself%20makes%20it%20to%20the%20teams%20channel%20but%20no%20mentions%20are%20created.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20what%20I%20would%20do%20if%20I%20wanted%20to%20mimic%20the%20action%20of%20going%20to%20the%20channel%20and%20typing%3A%26nbsp%3B%40%5Bchannel%20name%5D%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20any%20input%20you%20may%20have.%26nbsp%3B%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-643092%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-643092%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3BThank%20you!%20Appreciate%20it!%3C%2FP%3E%3CP%3EHope%20this%20gets%20fixed%20soon!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-643158%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-643158%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F347512%22%20target%3D%22_blank%22%3E%40BrianDavid%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EI%20think%20the%20request%20body%20format%20that%20you%20are%20sending%20is%20incorrect.%3C%2FP%3E%3CP%3ESee%20if%20this%20request%20body%20format%20works%20for%20you.%20Also%20this%20works%20only%20for%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-chatmessage%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dcs%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%2Fmessages%3C%2FA%3E%26nbsp%3B%3CSTRONG%3Ebeta%3C%2FSTRONG%3E%20API.%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3Enote%20%3A%20This%20does%20not%20work%20for%20v1.0%20version%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CPRE%3E%7B%22body%22%3A%7B%3CBR%20%2F%3E%22contentType%22%3A%22html%22%2C%3CBR%20%2F%3E%22content%22%3A%22%3CAT%20id%3D%22%5C%26quot%3B0%5C%26quot%3B%22%3EAutomated%20Tests%20Notification%20Channel%3C%2FAT%3E%20The%20automated%20health%20check%20tests%20encountered%202%20failed%20tests.%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22mentions%22%3A%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A0%2C%3CBR%20%2F%3E%22mentionText%22%3A%22Automated%20Tests%20Notification%20Channel%22%2C%3CBR%20%2F%3E%22mentioned%22%3A%7B%3CBR%20%2F%3E%22application%22%3Anull%2C%3CBR%20%2F%3E%22device%22%3Anull%2C%3CBR%20%2F%3E%22conversation%22%3A%7B%3CBR%20%2F%3E%22id%22%3A%22MY%20CHANNEL%20ID%20GOES%20HERE%22%2C%3CBR%20%2F%3E%22displayName%22%3A%22Automated%20Tests%20Notification%20Channel%22%2C%3CBR%20%2F%3E%22conversationIdentityType%40odata.type%22%3A%22%23Microsoft.Teams.GraphSvc.conversationIdentityType%22%2C%3CBR%20%2F%3E%22conversationIdentityType%22%3A%22channel%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20one%20that%20worked%20for%20me%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3EAPI%20used%20%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2F%3C%2FA%3E%3CSTRONG%3Ebeta%3C%2FSTRONG%3E%2Fteams%2F%3CTEAM-ID%3E%2Fchannels%2F%3CCHANNEL-ID%3E%2Fmessages%3C%2FCHANNEL-ID%3E%3C%2FTEAM-ID%3E%3C%2FP%3E%3CPRE%3E%7B%22body%22%3A%20%7B%3CBR%20%2F%3E%22contentType%22%3A%20%22html%22%2C%3CBR%20%2F%3E%22content%22%3A%20%22%3CDIV%3E%3CDIV%3E%3CAT%20id%3D%22%5C%26quot%3B0%5C%26quot%3B%22%3ETest%20Channel%3C%2FAT%3E%20Hi%3C%2FDIV%3E%5Cn%3C%2FDIV%3E%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22mentions%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A%200%2C%3CBR%20%2F%3E%22mentionText%22%3A%20%22Test%20Channel%22%2C%3CBR%20%2F%3E%22mentioned%22%3A%20%7B%3CBR%20%2F%3E%22application%22%3A%20null%2C%3CBR%20%2F%3E%22device%22%3A%20null%2C%3CBR%20%2F%3E%22user%22%3A%20null%2C%3CBR%20%2F%3E%22conversation%22%3A%20%7B%3CBR%20%2F%3E%22id%22%3A%20%22MY%20CHANNEL%20ID%20GOES%20HERE%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22Test%20Channel%22%2C%3CBR%20%2F%3E%22conversationIdentityType%40odata.type%22%3A%20%22%23Microsoft.Teams.GraphSvc.conversationIdentityType%22%2C%3CBR%20%2F%3E%22conversationIdentityType%22%3A%20%22channel%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20should%20work.%20If%20it%20does%20not.%20Do%20let%20me%20know%20with%20the%20exact%20error%20message%20that%20you%20are%20getting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-644049%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-644049%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F187228%22%20target%3D%22_blank%22%3E%40Nilay%20Dhamecha%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20quick%20reply.%20I%20was%20finally%20able%20to%20get%20a%20message%20to%20properly%20mention%20the%20channel%20by%20using%20the%20body%20below.%20You%20were%20correct%20in%20that%20I%20had%20some%20syntax%20issues.%20Again%2C%20thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFull%20disclosure%2C%20I%20am%20using%20the%20MS%20Graph%20Explorer%20to%20test%20this%20out.%20I%20now%20need%20to%20get%20the%20adminConsent%20step%20completed%20for%20the%20app%20I%20created%20so%20I%20can%20call%20this%20from%20our%20C%23%20test%20automation%20framework.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22importance%22%3A%20%22%5Bimportance%5D%22%2C%3CBR%20%2F%3E%22subject%22%3A%20%22%5Bsubject%5D%22%2C%3CBR%20%2F%3E%22body%22%3A%20%7B%3CBR%20%2F%3E%22contentType%22%3A%20%22html%22%2C%3CBR%20%2F%3E%22content%22%3A%20%22%3CAT%20id%3D%22%5C%26quot%3B0%5C%26quot%3B%22%3E%5BmentionText%5D%3C%2FAT%3E%5Bmessage%5D%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22mentions%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A%200%2C%3CBR%20%2F%3E%22mentionText%22%3A%20%22%5BmentionText%5D%22%2C%3CBR%20%2F%3E%22mentioned%22%3A%20%7B%3CBR%20%2F%3E%22conversation%22%3A%20%7B%3CBR%20%2F%3E%22id%22%3A%20%22%5BchannelId%5D%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22%5BdisplayName%5D%22%2C%3CBR%20%2F%3E%22conversationIdentityType%22%3A%20%22channel%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20inadvertently%20removed%20the%20line%20below%20but%20it%20worked%20so%20I%20left%20it%20out%20of%20the%20body.%3C%2FP%3E%3CPRE%3E%22conversationIdentityType%40odata.type%22%3A%22%23Microsoft.Teams.GraphSvc.conversationIdentityType%22%2C%3C%2FPRE%3E%3CP%3EHave%20a%20great%20rest%20of%20your%20day.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBrian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-645318%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Graph%20API%20%3A%20Cannot%20mention%20Team%20through%20POST%20%2Fmessage%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-645318%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F187228%22%20target%3D%22_blank%22%3E%40Nilay%20Dhamecha%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20able%20to%20get%20an%20access%20token%20and%20attempt%20to%20send%20a%20message%20from%20my%20C%23%20code%20and%20via%20PostMan%20but%20both%20routes%20result%20in%20this%20unknown%20error%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22code%22%3A%20%22UnknownError%22%2C%3CBR%20%2F%3E%22message%22%3A%20%22%22%2C%3CBR%20%2F%3E%22innerError%22%3A%20%7B%3CBR%20%2F%3E%22request-id%22%3A%20%22f383dd00-11be-445a-99e5-9d7288462e0b%22%2C%3CBR%20%2F%3E%22date%22%3A%20%222019-05-24T21%3A15%3A13%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20run%20the%20same%20url%20and%20body%20via%20the%20MS%20Graph%20Explorer%20tool%2C%20it%20works%20so%20I%20am%20confident%20the%20JSON%20and%20request%20are%20correct.%20I%20am%20thinking%20this%20is%20an%20issue%20with%20the%20access%20Token%20or%20some%20permission%20that%20I%20need%20to%20give%20but%20I%20did%20the%20interactive%20consent%20and%20the%20C%23%20code%20i%20am%20using%20successfully%20authenticates%20me%20as%20I%20am%20returning%20my%20user%20profile.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20encounter%20any%20issues%20with%20how%20you%20were%20using%20the%20access%20Token%3F%20I%20am%20adding%20it%20to%20the%20HttpClient%20object%20as%20such%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eclient.DefaultRequestHeaders.Add(%22Authorization%22%2C%20%22Bearer%20%22%20%2B%20accessToken)%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20PostMan%20I%20have%20tried%20adding%20the%20same%20as%20a%20header%20and%20also%20setting%20the%20AUTh%20to%20Bearer%20and%20entering%20the%20accessToken%20that%20i%20just%20received%20from%20a%20previous%20call.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20information%20you%20can%20provide%20would%20be%20appreciated%20but%20I%20understand%20if%20this%20error%20is%20really%20to%20general%20to%20even%20know%20where%20to%20begin%20in%20troubleshooting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EBrian%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Nilay Dhamecha
Contributor

Hi,

Microsoft recently supported @mentions through its /messages POST API.

It is working when we mention users, channels and bots however it is not working when we mention a Team the returned error is : 

501 Not Implemented
{
"error": {
"code": "UnknownError",
"message": "Failed to process request.",
"innerError": {
"request-id": "cdfa50fe-98fe-4665-95d2-1ff7d55ea1d0",
"date": "2019-05-13T08:07:31"
}
}
}

 Can someone please confirm if this is a bug? Is someone facing the same problem?

6 Replies
Highlighted
Solution
Hmm, AFAIK @mentions are in preview (https://bit.ly/2UiVH89) so it may not be introduced yet - but its strange that the Team @mention is supported in the Teams client but not through the API. I would raise on uservoice here with prefix of BUG:

https://microsoftteams.uservoice.com/forums/908686-bug-reports

Hope that answers your question

Best, Chris
Highlighted

@Nilay Dhamecha ,

 

I was hoping to get your input on my attempt to send a message to a channel and mention the channel or team name so all members and subscribers get a notification. I have tried using chatThreads and messages but neither results in a mention of the channel or team name.

 

Here is the body: 

 

{
rootMessage: {
                     "body": {
                     "contentType": "html",
                      "content": "<at id=\"0\">Automated Tests Notification Channel</at> The automated                               health check tests encountered 2 failed tests."
                        },
                    "mentions": [
                                         {
                                           "id": 0,
                                           "mentionText": "Automated Tests Notification Channel",
                                               "mentioned": {
                                                                 "application": null,
                                                                 "device": null,
                                                                 "conversation": {
                                                             "id": "MY CHANNEL ID GOES HERE",
                                                             "displayName": "Automated Tests Notification Channel",
                                                           "conversationIdentityType@odata.type":         "#Microsoft.Teams.GraphSvc.conversationIdentityType",
                                                      "conversationIdentityType": "channel"
                                                   }
                                     }
                              }
                        ]
              }
}

 

I looked at many sites who gave examples of how to use MENTION but I am not able to get the mention to show in the channel message. The message itself makes it to the teams channel but no mentions are created.

 

Is this what I would do if I wanted to mimic the action of going to the channel and typing: @[channel name]?

 

I appreciate any input you may have.  Thanks.

 

 

Highlighted

@Christopher Hoard Thank you! Appreciate it!

Hope this gets fixed soon! 

Highlighted

Hi @BrianDavid,

I think the request body format that you are sending is incorrect.

See if this request body format works for you. Also this works only for the /messages beta API.

note : This does not work for v1.0 version

{"body":{
"contentType":"html",
"content":"<at id=\"0\">Automated Tests Notification Channel</at> The automated health check tests encountered 2 failed tests."
},
"mentions":[
{
"id":0,
"mentionText":"Automated Tests Notification Channel",
"mentioned":{
"application":null,
"device":null,
"conversation":{
"id":"MY CHANNEL ID GOES HERE",
"displayName":"Automated Tests Notification Channel",
"conversationIdentityType@odata.type":"#Microsoft.Teams.GraphSvc.conversationIdentityType",
"conversationIdentityType":"channel"
}
}
}
]
}

 

Here is the one that worked for me : 

API used : https://graph.microsoft.com/beta/teams/<Team-Id>/channels/<Channel-id>/messages

{"body": {
"contentType": "html",
"content": "<div><div><at id=\"0\">Test Channel</at> Hi</div>\n</div>"
},
"mentions": [
{
"id": 0,
"mentionText": "Test Channel",
"mentioned": {
"application": null,
"device": null,
"user": null,
"conversation": {
"id": "MY CHANNEL ID GOES HERE",
"displayName": "Test Channel",
"conversationIdentityType@odata.type": "#Microsoft.Teams.GraphSvc.conversationIdentityType",
"conversationIdentityType": "channel"
}
}
}
]
}

 

I hope this should work. If it does not. Do let me know with the exact error message that you are getting.

 

Highlighted

@Nilay Dhamecha ,

 

Thanks for the quick reply. I was finally able to get a message to properly mention the channel by using the body below. You were correct in that I had some syntax issues. Again, thanks.

 

Full disclosure, I am using the MS Graph Explorer to test this out. I now need to get the adminConsent step completed for the app I created so I can call this from our C# test automation framework.  

 

{
"importance": "[importance]",
"subject": "[subject]",
"body": {
"contentType": "html",
"content": "<at id=\"0\">[mentionText]</at>[message]"
},
"mentions": [
{
"id": 0,
"mentionText": "[mentionText]",
"mentioned": {
"conversation": {
"id": "[channelId]",
"displayName": "[displayName]",
"conversationIdentityType": "channel"
}
}
}
]
}

 

I had inadvertently removed the line below but it worked so I left it out of the body.

"conversationIdentityType@odata.type":"#Microsoft.Teams.GraphSvc.conversationIdentityType",

Have a great rest of your day.

 

Regards,

 

Brian

Highlighted

@Nilay Dhamecha 

 

I was able to get an access token and attempt to send a message from my C# code and via PostMan but both routes result in this unknown error response.

 

{
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "f383dd00-11be-445a-99e5-9d7288462e0b",
"date": "2019-05-24T21:15:13"
}
}

 

If I run the same url and body via the MS Graph Explorer tool, it works so I am confident the JSON and request are correct. I am thinking this is an issue with the access Token or some permission that I need to give but I did the interactive consent and the C# code i am using successfully authenticates me as I am returning my user profile.

 

Did you encounter any issues with how you were using the access Token? I am adding it to the HttpClient object as such:

 

client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken);

 

In PostMan I have tried adding the same as a header and also setting the AUTh to Bearer and entering the accessToken that i just received from a previous call.

 

Any information you can provide would be appreciated but I understand if this error is really to general to even know where to begin in troubleshooting.

 

Regards,

Brian

 

 

 

 

Related Conversations
Modify Outlook invite links
arifC in Microsoft Teams on
4 Replies
Anyone else had Teams vanish from the apps list?
PhilC42 in Surface Hub on
1 Replies
Teams call transfer failed - Audiocodes VE
Olah Laszlo in Microsoft Teams on
0 Replies
Which headsets?
redtechguy in Microsoft Teams on
2 Replies