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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send reminder emails b...
Power Automate
Unanswered

Send reminder emails based on priority in Planner tasks

(0) ShareShare
ReportReport
Posted on by 4
Hi All,
 
I created a flow that is aim to send an email reminder to a client if she/he didn't change the progress from "not started" to "in progress". This flow is based on the priority the task creator has chosen, thus if the creator chose "medium" I would like to send an email reminder everyday. It's important to note that the plan contains multiple buckets, and I would like the task title, bucket name, and details to be included in this email, therefore I added filter array step for buckets, and get task details for the rest. As for the priority I added an initialize variable and set it to 5 to match a medium priority.
 
However, in the condition I can't retrieve the priority and use the value percent complete to trigger the flow to send emails only clients who are assigned to these type of tasks. If an email is sent, it sends the same reminder for each of the buckets.
 
Can you please help?
Categories:
I have the same question (0)
  • Verified answer
    Robu1 Profile Picture
    1,459 Super User 2025 Season 2 on at
     
    Thank you for choosing Microsoft Community.
     
    Sounds like you're almost there! Let's refine your flow to ensure it sends reminders correctly based on the task's priority and progress.
     
    Here's a step-by-step approach to achieve this:
     
     
    Initialize Variables:
    Initialize a variable for the priority (e.g., Priority set to 5 for medium).
    Initialize a variable for the current date.
     
    Get Tasks:
    Use the "List tasks" action to get all tasks from the plan.
    Filter Tasks:
    Use the "Filter array" action to filter tasks based on the priority and progress. The condition should check if the task's priority matches the initialized variable and if the progress is "not started".
    Loop Through Filtered Tasks:
    Use an "Apply to each" action to loop through the filtered tasks.
    Get Task Details:
    Inside the loop, use the "Get task details" action to get details of each task.
    Send Email:
    Use the "Send an email" action to send an email reminder. Include the task title, bucket name, and details in the email body.
     
    Here's a sample flow outline:

    1. Initialize variable: Priority = 5
    2. Initialize variable: CurrentDate = utcNow()
    3. List tasks (Planner)
    4. Filter array (Tasks where Priority = 5 and Progress = "not started")
    5. Apply to each (Filtered Tasks)
       5.1 Get task details (Planner)
       5.2 Send an email (Include task title, bucket name, and details)
    Make sure your filter array condition looks something like this:

    @and(equals(item()?['priority'], 5), equals(item()?['percentComplete'], 0))
     
    This should help you send reminders only for tasks that match the specified priority and progress criteria. If you encounter any specific issues or errors, feel free to share them, and I'll be happy to assist further! 😊

    If this Post helped you, please click  "Does this answer your question" and like this post to help others in the community find the answer too!

    Happy to help 
    Robu 1
  • Ruhama Amouyal- Lebovich Profile Picture
    4 on at
    Thank you so much Robu 1 🙏🏻
    The solution worked perfectly 😊
     
    I was wondering if I want to combine AND and OR operators in filter array, i.e., get one or two of the priorities, can I write the condition like this?
     
    @and(equals(item()?['percentComplete'], 0),or(equals(item()?['priority'], 1)),or(equals(item()?['priority'], 3)))
     
     
    Thank you,
    Ruhama
     
     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard