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 / Exporting Calendar Cat...
Power Automate
Unanswered

Exporting Calendar Categories to Excel

(1) ShareShare
ReportReport
Posted on by 20

I want a flow that extracts calendar events and compiles them into an Excel file. With five color categories, I intend to export each category into its own worksheet within the same workbook. The exported data should include the category, event name, start time, end time, and duration.

Currently, my flow successfully exports event details, start time, end time, and duration to Excel. However, I still need to incorporate category information to distribute this data to the respective worksheets.

 

For your reference, here is my flow and Excel:

My flow (I followed the instructions in this video:https://www.youtube.com/watch?v=TehvPFUMXOg&t=26s)

截圖 2024-05-11 18.16.01.png截圖 2024-05-11 21.54.06.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @snowflake_ 

     

    Power Automate actions operate based on Tables, not worksheets. To integrate with your flow, you'll need to incorporate tables into your worksheets.

    Start by adding tables to your worksheets. Then, within your flow, implement a switch condition with a branch for each category. Each branch would reference its own table.

    Feel free to reach out if you require further clarification or assistance.

     

  • snowflake_ Profile Picture
    20 on at

    Hello,

     

    Thank you for the clarification. Just to confirm, do I need to consolidate all 5 color category tables into one worksheet? Alternatively, is it feasible to export them to separate Excel files within the flow?

     

    Additionally, I would greatly appreciate it if you could provide an example or guide me through the steps to set up the switch condition with branches for each category within Power Automate.

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @snowflake_ 

    There are three options, each one is doable. Which one would you prefer?

    1. 5 Tables in one worksheet

    2. Separate worksheet for each category

    3. Separate excel for each category

     

    Are you okay creating the tables and the worksheets before the running the flow or would you want to the flow to generate them for you?

     

  • snowflake_ Profile Picture
    20 on at

    I would prefer option 2: Separate worksheet for each category.

     

    I've already created tables for each worksheet and am prepared to set them up.

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Can an event have more than one category? Will that be added to both worksheets?

     

     

  • snowflake_ Profile Picture
    20 on at

    An event should only have one category :).

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Apologies for the delay.  I will find time this weekend 

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @snowflake_ 

    Create an Excel with multiple worksheets and add it into your Onedrive.

    Give your Tables the same name as your Categories.

    Then use this logic

    SudeepGhatakNZ_0-1716787158774.png

     

    SudeepGhatakNZ_1-1716787202887.png

     

     

  • snowflake_ Profile Picture
    20 on at

    Sorry, I’m still not clear on this. Should I create multiple "Get tables" plus "Add a row in a table" actions after "Apply to each 3"? When you said "Give your tables the same name as your categories," do I need to use a filter to sort these 5 categories?

  • snowflake_ Profile Picture
    20 on at

    Hello,

    I tried to follow your steps, and my flow looks like this:

    截圖 2024-06-15 10.00.18.png截圖 2024-06-15 10.01.23.png

    However, it failed at the 'apply to each' step, and I'm not sure what you mean for the 'excel table' part, so I used parallel actions for testing. Could you please correct my flow?

    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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard