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 / Email user of shift st...
Power Automate
Unanswered

Email user of shift start from Staffhub

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

So I can't really grasp how to configure this Flow, if it's even possiable. 

 

I'm trying to utalize Staffhub to create two shifts each day.  Shift A and Shift B. 

 

A is 9-1

B is 1-5

 

Each day I want the flow to email the person when their shift is starting so the flow needs to email A and then B at the correct times. 

 

Any one got an idea of how to structure this? 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Could you please share more details about the Shift you created on Staffhub?

     

    You could use the Recurrence trigger to set the email to the corresponding member at 9 am and 1 pm each day.

     

    Please take a try and feel free let me know if you have any issue.

     

    Best Regards,

    Barry

  • HideonBush Profile Picture
    8 on at

    I think if you want to use flow on time to implement your ideas on time, there may be no way, after all, the execution of each action will be delayed.However, there are still some ways to send email alerts close to nine o'clock.

     

    Here is my method, you can try it.

     

    • First I created a Team on staffhub, the time zone is set to (GMT-05:00) Eastern Time (US&Canada), then Shift A (9-1), Shift B (1-5)
    • Use Recurrence trigger to make the flow run once every day at 9 am and 1 pm, and time zone conversion for utcNow() after the stream is triggered.
    • List all team shifts, you could also select the time period and determine if the start time is equal to utcNow().
    • If the result is True, you could get the email of the relevant member through Get Shift and Get a team member by ID.

     

    4.PNG

     

    Since there is a delay in the execution of the action, the formatDateTime function is used to ignore the number of seconds.

    Condition formula reference:

    formatDateTime(body('Convert_time_zone_start_Time'), 'yyyy-MM-ddTHH:mm')
     is equal to
     formatDateTime(body('Convert_time_zone_utcNow'), 'yyyy-MM-ddTHH:mm')

    5.PNG

     

    6.PNG

     

    The flow works successfully as below:

     

    7.PNG

     

    8.PNG

     

    Note:

    1. The time zone is best kept consistent with the staffhub. The time zone is the biggest problem I encountered when implementing this flow. You could output Team shifts first to see if the display is the same as what you set.
    2. You need to convert the time zone to Shift start time. As marked above, the shift on the staffhub is set at 9:00  in the morning, but it is displayed as 13:00 here. So use the Convert time zone to display the time set on the staffhub.
    3. There is a delay in the execution of the Action, so it is best to select the time period when configuring the list all team shifts action to shorten the execution time. This will not affect the subsequent judgment, even if the number of seconds has been ignored.

    Take a try!

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard