Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
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!

  • aah Profile Picture
    126 on at
    Re: Composing a reminder email using two SharePoint lists

    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?

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Composing a reminder email using two SharePoint lists

    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
    Re: Composing a reminder email using two SharePoint lists

    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?

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Composing a reminder email using two SharePoint lists

    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

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492