@Expiscornovus Here is a thread 🙂
I have this body:
{
"importance": "urgent",
"body": {
"content": "Check this out!<br>Tag: <at id=\"0\">Review alert</at>",
"contentType": "html"
},
"mentions": [
{
"id": 0,
"mentionText": "Review alert",
"mentioned": {
"tag": {
"@odata.type": "microsoft.graph.teamworkTagIdentity",
"id": "19:c5f21d155d6d48709a99f2f664b6441d@thread.tacv2",
"displayName": "Review alert"
}}}]
}
And the URL:
But I am getting the error message:
channel.displayName cannot be null or whitespace. (Parameter 'channel.displayName')
It looks like I have the same displayName as the channel, but this might not be the issue:
Hi @shavora,
Can you try this body payload instead?
I changed tag to conversation and added the conversationIdentityType property to it as well.
{
"importance": "urgent",
"body": {
"content": "Check this out!<br>Tag: <at id=\"0\">Review alert</at>",
"contentType": "html"
},
"mentions": [
{
"id": 0,
"mentionText": "Review alert",
"mentioned": {
"conversation": {
"id": "19:c5f21d155d6d48709a99f2f664b6441d@thread.tacv2",
"displayName": "Review alert",
"conversationIdentityType": "channel"
}
}}]
}
good idea, but it gave the same result:
I made a manual mentions and checked how it looked:
"mentions": [
{
"id": 0,
"mentionText": "Review alert",
"mentioned": {
"application": null,
"device": null,
"user": null,
"tag": null,
"conversation": {
"id": "19:c5f21d155d6d48709a99f2f664b6441d@thread.tacv2",
"displayName": "Review alert",
"conversationIdentityType": "channel"
}
}
}
]
Hi @shavora,
Just double checked the body payload in Graph Explorer (https://aka.ms/ge). The payload should be valid. Try and test over there yourself as well, with the same payload. Don't forget to logon to Graph Explorer btw 😁
Maybe it has something to do with the Office 365 Groups Send an HTTP request action (the v1 one, not the v2).
In the meantime I would stick with the Invoke an HTTP request for now. That one should work (tested it yesterday).
Below are my tests from Graph Explorer (different team id & channel id).
User | Count |
---|---|
16 | |
16 | |
14 | |
9 | |
8 |
User | Count |
---|---|
31 | |
28 | |
24 | |
23 | |
13 |