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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / On Call Rotation that ...
Power Automate
Unanswered

On Call Rotation that automatically updates

(1) ShareShare
ReportReport
Posted on by 2
I have a team of 3 developers (devA, devB, devC). We are each on call for a week at a time.
Today we have a recurring message that posts every day at the same time that:
@<OnCall dev> should check on the production checklist.
Oncall rotation ends at <Date>
 
I'd like to automate it to pick the dev from a list or map of options, to automatically change which person it selects each week, and to update the day the rotation ends at.
I'm a complete newbie to Teams Workflows so I'm not sure how to properly declare a map, dynamically select from a map in a message body, or dynamically change the date.

I'd be super grateful for some help.
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    You want it to be sequential right? And not for example round robin?
     
    Below is an example for 3 devs.
     
    This example calculates a week number based on today's date with the utcNow function. After that it div(ides) the week by 3. This should return either a 0, 3 or 6 as the first decimal. Using a formatNumber (with the 0.0 format) and a last function to retrieve that part. With a Filter Array action the example matches it against a Rota array.
     
    Rota Array
    [
    {"Name": "DevA", "ID": "0"},
    {"Name": "DevB","ID": "3"},
    {"Name": "DevC", "ID": "6"}
    ]
     
    Where in the Filter Array action
    @equals(item()['ID'], last(formatNumber(div(add(div(dayOfYear(utcNow()), 7), 1), 3.0), '0.0')))
     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard