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 / Composing a reminder e...
Power Automate
Unanswered

Composing a reminder email using two SharePoint lists

(0) ShareShare
ReportReport
Posted on by 126

I'm looking to use Power Automate to send out a reminder when medicals are due.

I have two lists in SharePoint - 'Medicals' & 'People'

 

I need a flow that will:

1. Using the 'Medicals' list, look up the 'Next Medical Assessment Due' column and see what medicals are due.

2. Get the 'Employee ID' of the employees whose medicals are due from the 'Medicals' list.

3. Compare that 'Employee ID' to the 'Employee ID' column in the 'People' list.

4. Using the 'Employee ID' get the 'Employee Name' of the person from the 'People' list.

5. Return it in an email containing the 'Employee Name' and the 'Next Medical Assessment Due' date together.

 

I'm quite new to Power Automate so the more explanation the better, thanks!

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @aah 

     

    Here is the flow:

    1. I have designed schedule flow which will trigger at 10 am (IST). You may modify the schedule or design a manual trigger flow as per your need:

    ManishSolanki_0-1684244704734.png

     

    2. Next, using 'Get items' we will fetch the records based on the next due date. Here, we are fetching those records with future appointment date:

    ManishSolanki_1-1684244927697.png

     

    3. Now, we will iterate Medical records and find the employee name form the 'People' list using 'Get items' action:

    ManishSolanki_2-1684245055446.png

    4. Then, iterate on the people records and append the required data in the array variable:

    ManishSolanki_3-1684245162672.png

     

    5. Finally, create a html table with the array variable and send the output of 'Create html table' action in an email:

    ManishSolanki_4-1684245308839.png

     

     

    I hope these steps will help you in designing the required flow 🙂

     

    If this helps, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

     

  • aah Profile Picture
    126 on at

    Hi @ManishSolanki,

     

    Thank you for your reply, I only have one issue.

     

    My 'Next Medical Assessment Due' column is a calculated column so it won't let me use it in the Filter Query box. Is there a way to work around this?

  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @aah 

     

    In that case, we will use filter array action to filter out the due records. Here is the updated flow:

    ManishSolanki_0-1684250291568.png

     

    ManishSolanki_1-1684250337232.png

     

    ManishSolanki_2-1684250406948.pngManishSolanki_3-1684250487498.png

     

    ManishSolanki_4-1684250711593.png

     

    Expression used is:

    formatDateTime(items('Apply_to_each')?['Next_x0020_Medical_x0020_Assessm'],'yyyy-MM-dd')
    ManishSolanki_5-1684250771242.png

     

    If this helps, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • aah Profile Picture
    126 on at

    Hi @ManishSolanki,

     

    Thanks for the reply!

     

    I'm not sure what I've done wrong because everything looks the same but when I run the flow the email I receive is empty. Any idea what might be causing this?

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard