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 / Push notification for ...
Power Automate
Unanswered

Push notification for teams Scheduled breaks

(0) ShareShare
ReportReport
Posted on by 2

I'd like to set up a Push notification in Teams using Power Automate. The flow should scan through my Teams schedule and identify my lunch break for each person (which is set for different times every day and changes every week), then send the person a notification 5 minutes before the start of the break. 

Currently, I can not get it to search though the shifts BREAK or Break, and nor can i set it to send a notification 5 minutes before the start of the break. I am not able to get power automate to send me a notification at a certain time of the day, and then i need to change the time accordingly every week, were as the goal is to get the flow to do this automatically and identify the already set break in shifts. 

I have been able to build a very simple model, that is just set to a recurrence for the week. 

TRRRLR_1-1713979405318.png

1- Recurrence should be every 30 minutes between working hours 

2- Check Teams Departments Shifts in Teams

3- Condition

  • True when shift Activities are equal to (Break/ BREAK), Send push notification via Chat bot in teams for a Lunch break
  • False when shift Activities are equal to nothing, Do nothing. 

4- Each Person of the Team, should get a push notification only once per day, 5 minutes before their Lunch Break 

 

 

 

Below I have attached all that I could get my hands on regarding what one can see in teams, the green block is in the teams schedule icon and if you click on the green icon the lower darker block opens.

TRRRLR_3-1713979692390.png

 

TRRRLR_0-1713979182252.png


I do believe that the logic is almost correct, but I don't know if I should be using a Filter array or a condition, or even if the whole command was incorrect, please can I have some help from anyone that might know how to do this ?

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

    Hi @TRRRLR 

     

    Logic would be to check whether shift name equals BREAK/break (activity) and then check whether its start time is 5 minutes after flow start time so that we can see whether flow need to send notifications or not 

     

    Just want to check with you, so you have created one shift and then all activities are added in that shift > am i correct ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • TRRRLR Profile Picture
    2 on at

    Greetings Nived,

    So the Shift is allocated to my team from other person and as far as I can see we have the activity (Break/BREAK) allocated per person. 

    My assumption is that we have an activity added to our shifts which represents our Break or BREAK

    TRRRLR_0-1714161363155.png

     

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

    Hi @TRRRLR 

     

    Try this approach.

     

    Make a scheduled flow which runs every minute like this 

    Nived_Nambiar_0-1714185936341.png

     

    Step 1. Use list all shifts to list all shifts 

    Nived_Nambiar_1-1714185959218.png

     

    Step 2. Filter the Shifts List output from list all shifts action using below condition in filter array

    Nived_Nambiar_2-1714186004047.png

     

    Expression used - 

    and(equals(item()?['draftShift/activities'],'Break'),equals(div(sub(ticks(item()?['draftShift/startDateTime']),ticks(utcNow())),600000000),5)) 

    This expression evaluates whether there is any activity with name break and its time difference is equal to 5 minutes

     

    Based on output of filter array - you can send message in teams like below

    Nived_Nambiar_3-1714186179861.png

     

    Also you can select required parameters from filter array's output itself

    Nived_Nambiar_4-1714186215790.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

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 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard