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 / Attempting to retrieve...
Power Automate
Answered

Attempting to retrieve calendar details and put them into an excel file

(1) ShareShare
ReportReport
Posted on by 9

Hi there,

 

Hopefully this is something simple and I am just being stupid, but I am trying to create a flow that reads all calendar events in a chosen calendar, and outputs their start time, end time and location into an excel file. So far I have managed to get the flow identify the calendar list, and I can see the results of the Get Calendar View Of Events (V3) when I look at it. I can see each event in a file showing all the key things I need.

 

 

Mike_Langlois_0-1693575855604.png

 

When I go to add it to a row in a table I have in excel, Automate automatically adds in a Apply to Each. When I go to change the value I want the apply to each to apply to (ID, so for each ID in the calendar view of events list) it adds another layer in? Is that normal?

Mike_Langlois_1-1693576156276.png

 

The add row into table is set up and seems fine, but the process fails overall with the error: 

 

The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@{outputs('Get_calendar_view_of_events_(V3)')?['body/value']}@{items('Apply_to_each')?['id']}' is of type 'String'. The result must be a valid array.

 

Bit new to all this, so have I done something stupid or does it not work how I would expect?

 

Many thanks!

 

Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at

    Hi @Mike_Langlois ,

     

    I hope this helps.  In my example, I don't see that Get Calendars (V2) is required, not sure where you are referencing that downstream.

     

    trice602_0-1693577302207.png

     

    When I add the action 'Add a row into a table' and then select Subject in the subject field, this action automatically wraps itself in an apply to each which is what you want.  I added a couple more columns to test.

     

    Here's what I would do:  attempt to copy my framework and see if this works for you.  

     

     

  • Mike_Langlois Profile Picture
    9 on at

    Hey thanks very much for the quick reply. That seemed to do it, must have just been getting myself mixed up. with too many layers. Its exactly what I needed, and with a bit of tweaking should meet my business need too 🙂

     

    Appreciate it!

  • trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at

    Nice!  Always glad to help and hope to catchup on the next post!  

     

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard