web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending an email about...
Power Automate
Unanswered

Sending an email about a teams message if no one is mentioned in the message

(0) ShareShare
ReportReport
Posted on by 9

We use Teams to communicate with our clients. We have many, many Teams channels assigned to individual clients. Some of our clients are very inconsistent about using the "mention" feature within Teams and it can be easy to overlook or miss a message from that client when this happens. 


I would like to build a Power Automate flow that sends an email to myself when any client posts a message that does not include a mention. Attached to this post is an image of the flow I have built so far; the flow does not work. How do I accomplish my goal?

Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Sending an email about a teams message if no one is mentioned in the message

    Hi @OldRed1 

     

    the message mentions dynamic content is a list, if there are no mentions, it would be like [] , an empty list so to validate whether the mentions are there or not use length() around message mentions dynamic content like below

     

    Nived_Nambiar_0-1680707875116.png

     

    Nived_Nambiar_1-1680707936880.png

     

    Hope this helps 

     

    Mark it as solution if it resolves your query 🙂

  • OldRed1 Profile Picture
    9 on at
    Re: Sending an email about a teams message if no one is mentioned in the message

    I will test this now! How did you know to add this part? triggerOutputs()?['body/mentions']

     

    I was trying to use the Dynamic Content options, but clearly that was not the right path to go. I would never have thought to use the Length function as you did. 

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Sending an email about a teams message if no one is mentioned in the message

    Hi @OldRed1 

     

    I did not get your question

    Could u explain it better ?

  • OldRed1 Profile Picture
    9 on at
    Re: Sending an email about a teams message if no one is mentioned in the message

    From the image you provided, it appears that the code triggerOutputs()?['body/mentions'] corresponds with Message Mentions. How did you figure that out? Is there documentation that contains this information?

     

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Sending an email about a teams message if no one is mentioned in the message

    Hi @OldRed1 

     

    Actually i thought it would be one since the name of dynamic content itself suggest that. 

     

    Else, i would have looked through the json structure of output of trigger to get the details 🙂

     

    After all, its all experimenting with things 😅

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard