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 / Automating export of t...
Power Automate
Answered

Automating export of teams schedule

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi there...

I have a Teams Schedule (Roster of Shifts) and I would like to try to automate the export of this.

When in the shifts tab there is a button at the top right to export the schedule.

You can select the from and to dates.

The output is exactly what I am looking for, but instead of manually doing it I would like to have it automatically run.

Frequency would be weekly

From date = now less 15 days

To date = now plus 30 days

The output excel sheet needs to be emailed as an attachment.

 

I have looked through the flow actions/triggers, but while I can get certain information there doesn't seem to be something which gives an output that is the same as the built in export function from the shifts screen itself.

 

Any suggestions would be appreciated.

 

Tony

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

    Hi @Anonymous ,

     

    Could you please share an example of the required table?

    Could you please take a try to refer to screenshot below to create the flow:

    1.png

    addDays(utcNow(),-15)
    addDays(utcNow(),30)

    And you could create custom table with required column in the "Create HTML table" action.

     

    Best regards,

    Alice   

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Alice...

     

    I've built the flow as per your example and I get the info I want with a few issues.

    The utc add days works perfectly thanks. I cant add another step to format the table so its pretty.

     

    The names as per the export schedule routine built into teams shows as id strings. I cant locate the source that the export schedule uses, unless there's a union of datasets somewhere in there.

    The times are in utc and editing the json to convert from utc won't take. I've exported and reimported with "convertTimezone()" added in but the code disappears once back in the flow (located in definition.json)

     

    Output in email

    schedule test 1.jpg

    Output needed. Does not need to be in this excel format. HTML is fine, just need readable information like below.

    schedule test 3.jpg

     

    Flow

    schedule test 2.jpg

    Appreciate the help.

     

    Tony

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Sorry for Microsoft flow couldn't achieve the requirement as the output that you provided currently and could only create the table as you attached.

     

    Best regards,

    Alice   

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi I'm running into the same UTC problem, did you ever find a solution?

     

    FYI, you can also pull out the user's name by parsing through the shift assigned to to the Get user profile action to get the display name.

    image.png

  • DANIELET Profile Picture
    2 on at

    This post is from 2020. Microsoft get a solution ?

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard