Skip to main content

Notifications

Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by 121

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?

  • YapaYapa Profile Picture
    YapaYapa 121 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?

  • Verified answer
    Nived_Nambiar Profile Picture
    Nived_Nambiar 17,076 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
    YapaYapa 121 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?

  • Nived_Nambiar Profile Picture
    Nived_Nambiar 17,076 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
    YapaYapa 121 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
    Nived_Nambiar 17,076 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

     

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard