cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Send an email when a Planner task is completed

Hello,

 

We are trying to use the "Send an email when a Planner task is completed" template and we want to send an email to the assignee on of the task when the task is completed. We've tried to use the "assignments Assigned to User Id" dynamic content on "To" on the send email (V2), but we are getting an error.

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Send an email when a Planner task is completed

Hello,

 

You should try below. "assignments Assigned to User Id" returns an ID and not a UPN or email address.

 

Define a string variable.

Pass "assignments Assigned to User Id" in "Get User profile" action to get the UPN of the assignee on of the task.

 

Screen1.png

 

Then set the variable from the above output, and then pass the variable to the send an email action.

 

Screen2.png

 

Hope this helps !

 

 

View solution in original post

4 REPLIES 4
Highlighted
Super User II
Super User II

Re: Send an email when a Planner task is completed

@KimPaoloDela 

 

In the flow Run History, can you check what value it is shows for "assignments Assigned to User Id" in the output of "When a task is completed" trigger? If it is blank, then Send Email action will throw an error as Send Email action must need atleast one email id.

 

Please let me know if you have any questions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
Highlighted
Microsoft
Microsoft

Re: Send an email when a Planner task is completed

Hello,

 

You should try below. "assignments Assigned to User Id" returns an ID and not a UPN or email address.

 

Define a string variable.

Pass "assignments Assigned to User Id" in "Get User profile" action to get the UPN of the assignee on of the task.

 

Screen1.png

 

Then set the variable from the above output, and then pass the variable to the send an email action.

 

Screen2.png

 

Hope this helps !

 

 

View solution in original post

Highlighted
New Member

Re: Send an email when a Planner task is completed

Wow, this literally what we need. Yeah, we saw that we need a string or email on the "To" on send email, but we are not sure how.

 

Thank you so much for your help.

Highlighted
New Member

Re: Send an email when a Planner task is completed

Thank you for your help as well 🙂

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,416)