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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send Email to all work...
Power Automate
Answered

Send Email to all workers in specific shift according to their schedule

(0) ShareShare
ReportReport
Posted on by 125

Hello Everyone,

I would like to create an automatic flow that sends an email 4 days before a worker has night shift in his/her schedule.
The flow will need to take the name of the worker from an excel file online ( Schedule). The schedule is built as follow:
rows: workers' name
columns: date
cell: shift ( Morning, Evening, Night)

Can anyone guide me through the requiered steps please?

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Fedegallo 

     

    To confirm, does the data looks like this in excel file ?

    Nived_Nambiar_0-1685796632549.png

     

     

     

  • YapaYapa Profile Picture
    125 on at

    Hello @Nived_Nambiar , 

    nope, more like this:

    Fedegallo_0-1685870872161.png

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Fedegallo 

     

    Sorry for late response

     

    I think you can try this way 

     

     

    1. List all rows in excel table

     

    2. Filter the row with condition with date column having value 4 days after current date with value Night 

     

    3. The output of filter array would be having row of those who have night shift 4 days after today's date.

     

    4. Now you can send them an email ☺️

     

     

     

    Hope it helps 

     

    Mark it as solution if it resolve ur query!

     

  • YapaYapa Profile Picture
    125 on at

    Hello @Nived_Nambiar 
    can you please send me a visual of the flow?

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Fedegallo 

     

    Sorry for late response 

     

    See below 

     

    I have created a file like below

    Nived_Nambiar_0-1686405815933.png

     

    Flow designed is 

     

    Step 1: List all rows present in table to get all rows from the schedule file

    Nived_Nambiar_1-1686405897900.png

     

    Step 2: use compose action to get the date 4 days after current date in d/M/yyyy format (why i am using d/M/yyyy format is because my column name date is appearing in that format due to which i need to use that)

    Nived_Nambiar_2-1686405987284.png

     

    Expression used is :

    formatDateTime(addDays(utcNow(),4),'d/M/yyyy')
     
    Step 3: use filter array to filter the required date column by Night 
    Nived_Nambiar_3-1686409959493.png

     

    Step 4: Loop through all items in the output of filter array & send email

    Nived_Nambiar_4-1686410031953.png

     

    here output variable (dynamic content) is the output of compose action

     

    And bot will send an email like below

    Nived_Nambiar_5-1686410078885.png

     

     

    Hope it helps !

    Mark it as solution if it resolves your query !

     

     

     

  • YapaYapa Profile Picture
    125 on at

    Hello @Nived_Nambiar,

    um the above flow is not working,
    I believe its missing the variable that identify the person that has night shift in 4 days and to whom send the email no?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard