Power Automate Exchange

Please login or click SIGN UP FOR FREE to create your FlowUG account to join this user group.
Expand all | Collapse all

"Message text mention needs to be specified" on the action "Post a message in a chat or a channel" (Power Automate / Teams)

  • 1.  "Message text mention needs to be specified" on the action "Post a message in a chat or a channel" (Power Automate / Teams)

    Posted Oct 20, 2021 12:46 PM

    Hello

    I ask for your help for an error on a particular action on Teams.

    I have a Power Automate flow, which post particular messages on several channels. But on one of these channels I have an error, with the following message : "Message text mention needs to be specified". What are the possible reasons of this message ?


    I have verified the account used for the execution of this flow. He can write properly on this channel manually. He can send a small message to this channel with the action "Post a message in a chat or a channel".

    But the message, which is prepared in my flow and sent with this action, is a long message written in HTML.


    In this case it mentions an user with <at> tag. Is there a limit for the email written between <at> and </at>? How many characters could contain this email?

    Thank you very much for your help

    Nicole



    ------------------------------
    Nicole Efanda
    Developer
    Saint Jean des Champs
    ------------------------------


  • 2.  RE: "Message text mention needs to be specified" on the action "Post a message in a chat or a channel" (Power Automate / Teams)

    Top Contributor
    Posted Oct 21, 2021 07:48 AM
    It's been my experience that flows are very temperamental . Have you tried copying your code for the message into a compose action then putting the compose output into the teams message text body? Or clearing the message out typing a few letters, save the flow, refresh your browser, and then try putting your dynamic message code back in the message body?

    ------------------------------
    Sam Duval
    Data Quality Analyst
    Element Financial
    Indianapolis IN
    ------------------------------



  • 3.  RE: "Message text mention needs to be specified" on the action "Post a message in a chat or a channel" (Power Automate / Teams)

    Posted Oct 22, 2021 01:08 PM

    Hello,

    Thank you very much for your help, Sam Duval

    In my flow the user was mentioned with his email and the <at> tag. And there was an error when the email of the user is very long (42 characters). I thought this email could not be interpreted.

    So I get the User ID (Microsoft 365) with the "Get User Profile" action. I mention the user with his User ID between <at> and </at>. There is no more error on my flow

    Best Regards

    Nicole



    ------------------------------
    Nicole Efanda
    Developer
    Saint Jean des Champs
    ------------------------------