cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow to email Planner Task Assignee(s) reminders of due date

Trying to find a way to email the assigned user of planner task a reminder when the task is not yet completed and the due date is approached or has passed.  The logic and parameters for the majority of this are fairly straightforward, however I can't seem to find a parameter in flow for task Assignee(s).  Any idea how to design this senario.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could configure your Flow by following the methods below:

  • Use Recurrence as a trigger and run it once a day.
  • Configure List task action to get all the tasks.
  • Iterate through all the tasks and use Condition to filter out the eligible tasks. Value Completed By is equal to null. In addition, if it is notified one day before the task deadline, value Due Date Time needs to be equal to the current date plus one day.

Expression:

formatDateTime(items('Apply_to_each')['dueDateTime'],'yyyy-MM-dd')

is equal to

addDays(utcNow(),1,'yyyy-MM-dd')
  • Then iterate through all the Assigned To User Id, use Get user profile action to get the user's email, and finally configure Send an email action.

Image reference:31.PNG

32.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
SCTdan
Continued Contributor
Continued Contributor

That connector needs an update, that's for sure.  You're correct, it does not directly return the assigned user.

 

But, it does return the userid-

 

 

 

 

So, you could then create a loop going through the user profiles and comparing the userID.  An extra loop in there to account for multiple assignees.  Use 'Search for Users' with no search term to get your full list of users.

 

 

Thanks

dan

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

v-bacao-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could configure your Flow by following the methods below:

  • Use Recurrence as a trigger and run it once a day.
  • Configure List task action to get all the tasks.
  • Iterate through all the tasks and use Condition to filter out the eligible tasks. Value Completed By is equal to null. In addition, if it is notified one day before the task deadline, value Due Date Time needs to be equal to the current date plus one day.

Expression:

formatDateTime(items('Apply_to_each')['dueDateTime'],'yyyy-MM-dd')

is equal to

addDays(utcNow(),1,'yyyy-MM-dd')
  • Then iterate through all the Assigned To User Id, use Get user profile action to get the user's email, and finally configure Send an email action.

Image reference:31.PNG

32.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi  

 

hat helps me a lot.

If you have a blog or learning resource url please share with me.

I'm a beginer and eager to learn MS Flow more.

 

Kind Regards,

TOR

Anonymous
Not applicable

Thank you for the explanation.

If you could share some screen short that would be more helpful.

 

 

Hi,

 

I am trying to do something similar, only to send an email when the start date is today as a reminder.

 

I tweaked the flow to have: "value start date" is equeal to "utcNow()" but I m getting always condition false.

 

Any ideas?

 

Capture.PNG

 

 

Thank you

 

 

I am getting an error message using this code. Can you help? 

 

Unable to process template language expressions for action 'Condition' at line '1' and column '20839': 'The template language expression 'formatDateTime(items('Apply_to_each')['dueDateTime'],'yyyy-MM-dd')' cannot be evaluated because property 'dueDateTime' doesn't exist, available properties are '@odata.etag, planId, bucketId, title, orderHint, assigneePriority, percentComplete, createdDateTime, hasDescription, previewType, referenceCount, checklistItemCount, activeChecklistItemCount, id, createdBy, appliedCategories, assignments, _assignments'. Please see https://aka.ms/logicexpressions for usage details.'.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,150)