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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating a flow from P...
Power Automate
Unanswered

Creating a flow from Planner: value assignments assigned to, Teams Chat with @mention of assigned person.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to get a flow that when a project is coming due it will post a message in chat (which I have completed correctly) but will @mention the person who the task is assigned to in Teams.  

 

John Doe is the person that is assigned to the task and it is due on June 19th.  I would like a post to teams that shows:

 

@JohnDoe(Team Mention) your task "Report for NASA" is coming due on June 19th.

 

When I use "Value assignments assigned to" I get the ID code but cant get it to convert to @mention in Teams. 

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Maybe you could try to add a Get user profile (V2) Action.

     

    I have made a test for your reference. 

    {
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.0",
     "type": "AdaptiveCard",
     "body": [
     {
     "type": "TextBlock",
     "size": "Medium",
     "weight": "Bolder",
     "style": "heading",
     "wrap": true,
     "text": "@<at>@{outputs('Get_user_profile_(V2)')?['body/mail']}</at>(Team Mention): your task Report for NASA is coming due on June 19th."
     }
     ]
    }

    vyujincuimsft_0-1655112016318.png

    Result Screenshot:

    vyujincuimsft_1-1655112082490.png

     

     

     

    Best Regards,
    Charlie Choi

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much for looking into this but I'm having an issue, its coming back with "Bad Request" and "An action failed. No dependent actions succeeded."

    Capture.PNG

     

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please provide the setting for the Post adaptive card in a chat or channel Action?

    vyujincuimsft_0-1655175522906.png

    In addition, maybe you could try as below:

    <p>@<at>Dynamic Content</at>(Team Mention): your task "Dynamic Content" is coming due on Dynamic Content.</p>

    vyujincuimsft_1-1655175774150.png

    Result Screenshot:

    vyujincuimsft_2-1655175978587.png

     

     

     

    Best Regards,
    Charlie Choi

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried your simpler "post a message to chat or channel" and still received a "BADREQUEST" once ran.  Below are screenshots of the flow with the errors.  Again, thank you for looking into this.   

     

    In Get User Profile (V2) I am adding in "value assignments assigned to user id", just incase that was needed.

     

    Capture 1.PNGCapture 2_LI (3).jpgCapture 3_LI (3).jpg

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

     Sorry i could not reproduce the error, your flow looks fine.

    vyujincuimsft_0-1655261029840.png

    Based on the error message: Message mention text needs to be specified , I found 2 similar cases, hope it helps.
    https://techcommunity.microsoft.com/t5/teams-developer/sending-a-teams-message-from-power-automate-with-mention-is/m-p/3238160


    https://powerusers.microsoft.com/t5/Building-Flows/Message-text-mention-needs-to-be-specified-on-the-action-Post-a/td-p/1317845

     

     

    Best Regards,
    Charlie Choi

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard