Home

[Graph API] Issues while creating new chat-thread

%3CLINGO-SUB%20id%3D%22lingo-sub-242558%22%20slang%3D%22en-US%22%3E%5BGraph%20API%5D%20Issues%20while%20creating%20new%20chat-thread%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242558%22%20slang%3D%22en-US%22%3E%3CPRE%3E%3CSPAN%20class%3D%22pln%22%3EPOST%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Eteams%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%2F%7B%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Eid%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%7D%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Echannels%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%2F%7B%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Eid%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%7D%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Echatthreads%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EHi%2C%20So%20we%20are%20trying%20to%20integrate%20ms%20Teams%20in%20our%20application%20and%20we%20were%20doing%20a%20POC%20whether%20we%20can%20post%20a%20new%20message%20to%20Teams%20App.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20what%20I%20found%20out%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECurrently%2C%20only%20creating%20a%20new%20discussion%20thread%20is%20possible.%20However%2C%20this%20also%20has%20the%20following%20limitations%3A%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3ECannot%20post%20%40user%20mentions%20(*)%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%3EHere's%20what%20we%20have%20sent%20in%20the%20request%20body%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CUL%3E%3CLI%3E%3CPRE%3E%7B%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22rootMessage%22%3C%2FSPAN%3E%3A%20%7B%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22body%22%3C%2FSPAN%3E%3A%20%7B%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22contentType%22%3C%2FSPAN%3E%3A%201%2C%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22content%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22code-quote%22%3E%22%3CDIV%3E%3CDIV%3E%3CAT%3EUser1%3C%2FAT%3E%26amp%3Bnbsp%3B%20Hello%3C%2FDIV%3E%5Cn%3C%2FDIV%3E%22%3C%2FSPAN%3E%2C%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22mentions%22%3C%2FSPAN%3E%3A%20%5B%0A%20%7B%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22type%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22code-quote%22%3E%22user%22%3C%2FSPAN%3E%2C%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22id%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22code-quote%22%3E%22%3CUSER-ID%20of%3D%22%22%20user1%3D%22%22%3E%22%3C%2FUSER-ID%3E%3C%2FSPAN%3E%2C%0A%20%3CSPAN%20class%3D%22code-quote%22%3E%22mentionText%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22code-quote%22%3E%22User1%22%3C%2FSPAN%3E%0A%20%7D%0A%20%5D%20%7D%0A%20%7D%0A%7D%3C%2FPRE%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3E%3CSPAN%3ECannot%20post%20attachments%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ECannot%20post%20a%20subject%20for%20the%20conversation%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3E%3CSPAN%3EReplying%2C%20editing%2C%20or%20deleting%20a%20post%20is%20not%20supported.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ELiking%2C%20marking%20read%2Funread%2C%20save%20and%20other%20conversation%20specific%20actions%20are%20not%20supported%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3ECan%20someone%20please%20confirm%20whether%20the%20above%20findings%20are%20correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CEM%3ENote%20%3A%20All%20the%20operations%20needs%20to%20be%20done%20through%20above%20POST%20API.%3C%2FEM%3E%3C%2FU%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-242558%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-303382%22%20slang%3D%22en-US%22%3ERe%3A%20%5BGraph%20API%5D%20Issues%20while%20creating%20new%20chat-thread%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303382%22%20slang%3D%22en-US%22%3EYup!%20We%20just%20have%20to%20wait%20til%20new%20graph%20features%20comes%20up%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303374%22%20slang%3D%22en-US%22%3ERe%3A%20%5BGraph%20API%5D%20Issues%20while%20creating%20new%20chat-thread%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303374%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Nilay!%20I've%20also%20found%20these%20and%20several%20other%20use-cases%20that%20I%20couldn't%20get%20working%20with%20the%20API%2C%20my%20hunch%20being%20that%20those%20are%20not%20supported%20either%20(despite%20no%20documentation%20confirming%20this%2C%20or%20documentation%20saying%20otherwise)%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FChat-thread-creation-API-issues%2Fm-p%2F302494%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FChat-thread-creation-API-issues%2Fm-p%2F302494%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303195%22%20slang%3D%22en-US%22%3ERe%3A%20%5BGraph%20API%5D%20Issues%20while%20creating%20new%20chat-thread%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303195%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20support%20from%20Microsoft%20for%20this%20API%20is%20%3CSTRONG%3Enot%3C%2FSTRONG%3E%20there%20yet.%3C%2FP%3E%3CP%3EThe%20question%20was%20posted%20to%20confirm%20these%20limitations%20with%20someone%20from%20Microsoft%20but%20haven't%20received%20any%20response%20yet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-302385%22%20slang%3D%22en-US%22%3ERe%3A%20%5BGraph%20API%5D%20Issues%20while%20creating%20new%20chat-thread%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-302385%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20manage%20to%20resolve%20these%20Nilay%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Nilay Dhamecha
Occasional Contributor
POST /teams/{id}/channels/{id}/chatthreads

Hi, So we are trying to integrate ms Teams in our application and we were doing a POC whether we can post a new message to Teams App.

 

Here is what I found out : 

 

Currently, only creating a new discussion thread is possible. However, this also has the following limitations:

  • Cannot post @user mentions (*)

Here's what we have sent in the request body

    • {
       "rootMessage": {
       "body": {
       "contentType": 1,
       "content": "<div><div><at>User1</at>&nbsp; Hello</div>\n</div>",
       "mentions": [
       {
       "type": "user",
       "id": "<user-id of User1>",
       "mentionText": "User1"
       }
       ] }
       }
      }
  • Cannot post attachments
  • Cannot post a subject for the conversation
  • Replying, editing, or deleting a post is not supported.
  • Liking, marking read/unread, save and other conversation specific actions are not supported

Can someone please confirm whether the above findings are correct?

 

Note : All the operations needs to be done through above POST API.

4 Replies

Did you manage to resolve these Nilay?

The support from Microsoft for this API is not there yet.

The question was posted to confirm these limitations with someone from Microsoft but haven't received any response yet.

Thanks Nilay! I've also found these and several other use-cases that I couldn't get working with the API, my hunch being that those are not supported either (despite no documentation confirming this, or documentation saying otherwise): https://techcommunity.microsoft.com/t5/Microsoft-Teams/Chat-thread-creation-API-issues/m-p/302494

Yup! We just have to wait til new graph features comes up
Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
description for autoplay blocking in settings page
HotCakeX in Discussions on
8 Replies