Forum Discussion

Julian12's avatar
Julian12
Brass Contributor
Aug 17, 2020

Microsoft Flow: @mention action not working for Teams reply

Hi,

I'm currently working on a Flow which should be automatically called when a new mail arrives in a teams channel. This mail is from a facility information service an provides info regarding packages and guests.

As there is no specific notification for this mail and so guest could be overseen, I want to add a mention notification to this mail in the channel.

I tried with an automatic flow, with the trigger "when a new post is added to a channel" and then a condition with "if the sender from name is "SENDERNAME" is true" then call a "get mention token for a user" action and add this token to the "reply to message in teams" action.

 

But as soon as I add the mention token action my flow ends in errors saying that I "should correct invalid inputs for the condition" and "correct invalid inputs for my reply to message" action.

 

I have no clue why these errors exist, I have access to the team and channel, logged into a teams session in flow and so on.

 

Can anyone help me in there?

If infos are needed to solve this, just ask 😉

Thanks and Regards!

9 Replies

  • Hey Julian12 ,

     

    Couple of places you could have gone wrong, here is a working screenshot reference:

    First off the end result; note that message posted in teams says "Via email" when someone posts email to channel :

     

    So, Instead of using the condition "if the sender from name is" a better option would be "Message from display name contains" like:

     

    Next make sure the flow is replying to the right message, Use "Message ID" (unique for every message) for this :

    and that should do the trick.

     

    Thanks

     

    • Julian12's avatar
      Julian12
      Brass Contributor

      Hi harveer singh,

       

      thanks for your detailed explanation!

       

      I rebuilt my flow with the exact same objects and values to your example but still I'm getting these nasty errors. I even tried other channels and other users with which I built the flow, still no luck.

       

      Following is a screenshot of my current flow, though in german but should be same elements:

      Maybe you notice something.

       

      The errors occur as soon as I add the  mention Token action to the flow, first for the condition and as as soon as I add the last reply to message action, the 2nd error is popping up^^

       

      Best Regards

      • harveer singh's avatar
        harveer singh
        Iron Contributor

        Hey Julian12 ,

         

        Can you try nullifying the other condition, the one where there is no match, also can you try to use mention for some other user.

         

        Thanks

Resources