cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow Calendar Multiple Categories

Through my Flow I'm attempting to export a weekly view of my calendar details; however, the issue I'm running into is when I attempt to export the categories associated with an event on my calendar. If I have multiple an event with two categories on my calendar, it will list the event in two separate rows. I'm looking to have both categories have their own column. Is there a way to achieve this? 

 

Flow and Excel Table below:

 

ryan_poweruser_0-1594127288806.png

ryan_poweruser_2-1594127639441.png

 

 

1 REPLY 1
efialttes
Super User
Super User

Hi!

So 2 is the max nr of categories you are dealing per calendar event, rght And, you expect first category to be stored in column 'Category' and the second one in the column 'Sub-Category, right?

IF so, I would move 'Add row into a table' out of the 'Appply to each 2' but keeping it inside 'Apply to each', then get rid of the 'Apply to each 2'.

THen I would assign to 'Add row into a table' 'Category' the following WDL expression:

if(greater(length(item()?['Categories']),0),first(item()?['Categories']),'')

Finally, I would assign to 'Add row into a table' 'Sub-Category' the following WDL expression:

if(greater(length(item()?['Categories']),1),last(item()?['Categories']),'')

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,448)