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 / Send an Email when a t...
Power Automate
Answered

Send an Email when a task in Planner is marked complete

(0) ShareShare
ReportReport
Posted on by 84

I have written a flow that mails the manager whe a task is complete. I have included the Task Title, Completed By, and Completed Date Time. Please see the flow below. It works perfectly.

 

Planner email flow.jpg

 


I am now trying to add the person/s (there could be more than one) to whom the task was assigned (because they could be different from the person who marked the task complete), but I am unable to figure out how.
Can someone help please?

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,870 Most Valuable Professional on at

    Hi @ramsabi,

     

    You could use the assignments collection from the trigger action to retrieved the assigned persons. However, this collection doesn't contain an e-mail. So, you would need an additional apply to each to loop through the ids and retrieve their e-mail addresses from Azure AD. 

     

    Below is an example of that approach.

     

    assignedtomail.png

     

    1. Add an initialize variable after the Get User Profile (V2) action. Call it AssignedToMail and set the type to string.

     

    2. Add a select. Use the assignments in the from. Use the UserId field in the Map.

     

    item()?['userId']

     

     

    3. Add an apply to each. Use the output in from the select.

     

    4. Add a Get User within the Apply to each. Use the item() as the value.

     

    5. Add an Append to String variable. Use the mail dynamic content field. Don't forget to add the ; at the end.

     

    6. Use the AssignedToMail in your Send an email action (which should be outside the apply to each).

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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard