cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shavora
Post Prodigy
Post Prodigy

Mention channel using 365 groups connector

@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:

Screenshot 2023-01-20 111002.jpg

 

But I am getting the error message:

channel.displayName cannot be null or whitespace. (Parameter 'channel.displayName')

5 REPLIES 5
shavora
Post Prodigy
Post Prodigy

It looks like I have the same displayName as the channel, but this might not be the issue:

Screenshot 2023-01-20 111321.jpg

Expiscornovus
Super User
Super User

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" 
                        }
}}]
}

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


good idea, but it gave the same result: 

 

Screenshot 2023-01-20 112020.jpg

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"
          }
        }
      }
    ]
Expiscornovus
Super User
Super User

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).

 

invoke_anhttprequest02.pnginvoke_anhttprequest.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,308)