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

Community site session details

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

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:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Send Email to all workers in specific shift according to their schedule

    Hi @Fedegallo 

     

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

    Nived_Nambiar_0-1685796632549.png

     

     

     

  • YapaYapa Profile Picture
    125 on at
    Re: Send Email to all workers in specific shift according to their schedule

    Hello @Nived_Nambiar , 

    nope, more like this:

    Fedegallo_0-1685870872161.png

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Send Email to all workers in specific shift according to their schedule

    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
    Re: Send Email to all workers in specific shift according to their schedule

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

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Re: Send Email to all workers in specific shift according to their schedule

    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
    Re: Send Email to all workers in specific shift according to their schedule

    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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard