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 / Sending an email notif...
Power Automate
Unanswered

Sending an email notification whenever training expiry date is 120 days or lesser.

(1) ShareShare
ReportReport
Posted on by 16

Hi all, i need to create a flow where i retrieve data from an excel sheet which has staffs training expiry dates . The number will be 120 days or lesser from now . The flow will also need to state the staff name and id who is expiring. Currently i have 14 training programs and each of them has their own expiry date . i need to use the flow to name the type of training and staff name and id who is expiring and send an email prompt . Help is very much appreciated!!

 

Here is an example :

Hi,

 

Our records show that:

STAFF NAME (ID: XXXXXX) records has expired / is expiring in XXX days. Please take urgent action to assign staff to complete these assignment(s).

  • Item Title: XXXXX
  • Item Type: COURSE
  • Item Due Date: XXXXX
Categories:
I have the same question (0)
  • Geeks_D Profile Picture
    1,169 on at

    Some house clearing first
    The Excel sheet must be either on SharePoint Document Library or a OneDrive Storage 

    The worksheet data must be in table 

    Geeks_D_0-1701786175821.png

     
    On Power Automate 
    Create a flow i am taking a guess it might be Schedule flow 
    Add the actions 
    List rows present in a table 

    Geeks_D_1-1701786349214.png


    Check if the Date Values for the due date are right then we can go fix the rest 

  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at

    Hi @Limahhui ,

     

    I might set up something like this, please use this as your framework to complete your project.

     

    trice602_0-1701786280135.png

     

    Here I have a recurrence trigger that will run every Monday.

     

    trice602_1-1701786327977.png

     

     

    Next I am getting the future date.

     

    trice602_2-1701786360668.png

     

     

     

    Next I added a compose and formatting my future date.

     

    trice602_3-1701786398580.png

     

     

     

    Next I list rows in my Excel table.

     

    trice602_4-1701786443572.png

     

     

    Next I filter my results by DueDate less than or equal to Future date.

     

    trice602_5-1701786484059.png

     

     

    Then for each row that is inside 120 days, I send an email.

     

    trice602_6-1701786534355.png

     

     

     

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @Limahhui ,

    I did a test of sending reminder emails with 30 days or less until the deadline, with a frequency of once a day.

    In my scenario:

    vyetonggumsft_0-1701787103816.png

    vyetonggumsft_0-1701786463159.png

     

    formatDateTime(items('Apply_to_each')?['DueDate'],'yyyy-MM-dd')
    utcNow('yyyy-MM-dd')
    addDays(items('Apply_to_each')?['DueDate'],-30,'yyyy-MM-dd')

     

    vyetonggumsft_1-1701786600640.png

     

    div(sub(ticks(items('Apply_to_each')?['DueDate']),ticks(utcNow('yyyy-MM-dd'))),864000000000)
    formatDateTime(items('Apply_to_each')?['DueDate'],'yyyy-MM-dd')

     

    My Excel Table:

    vyetonggumsft_2-1701786720056.png

    My outlook inbox:

    vyetonggumsft_3-1701786745159.png

    Best Regards,

    Sunshine Gu

  • Limahhui Profile Picture
    16 on at

    Lets say if each of the 14 training courses has their own table for e.g. (PDPA expiry date). How do i label them together?

     

    Also, im having this error 

    Limahhui_1-1701789906653.png

     

  • Limahhui Profile Picture
    16 on at

    Thank You for the help!

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