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 / Apply to each “invalid...
Power Automate
Suggested Answer

Apply to each “invalid expressions” when iterating through the return of GetCalendar

(0) ShareShare
ReportReport
Posted on by 3
Hi everyone,
I'm creating a flow in Power Automate to read events from Outlook and create/update tasks in Planner.
I have a GetCalendar (Office 365) step with operationId = CalendarGetTables_V2, and then an Apply to each called Calendars to iterate through the calendars and call "GetEvents".
The problem is that the editor won't let me save: the error message appears:
"The input parameters for the 'Calendars' operation contain invalid expressions..."
The error points to the "Select an output from previous steps" field of Apply to each.
I've already tried several inputs:
`outputs('GetCalendar')?['body/value']`
`coalesce(outputs('GetCalendar')?['body/value'], json('[]'))`
I also tried including `Parse JSON` (schema with a value array of `{id,name}`) and iterating:
`outputs('JSON')?['body']?['value']`
I also tried working around it with `Select/Compose`, but the `Apply` is still invalid.
Has anyone seen this in the new designer?
What's the correct way to populate the `Apply to each` with the return from `CalendarGetTables_V2`?
Is there a workaround (classic designer, another connector/action to list calendars, etc.)?
If needed, I can post screenshots of the "Calendars" step and the code display for `GetCalendar`.
Thank you!
PRINT3.png
PRINT1.png
PRINT2.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Suggested answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at
    Hey @IP-13011644-0 Are you getting an “invalid expression” error in Apply to each, or is the flow failing at runtime when iterating through the calendars?
     
    Can you give the below a short...
    • Apply to each > Input (Expression): body('Get_calendars_(V2)')?['value']
    • Inside Apply to each → Get events (V4): items('Apply_to_each')?['id']
     
    If it helped you, please click "Does this answer your question?" and give it a like or mark it as Solution, it helps others in the community find answers more easily!
    Connect With Me:
    💼 LinkedIn: Clavin Fernandes
    📺 YouTube: Clavin Fernandes
    📝 Blog: clavinfernandes.wordpress.com
    🌐 Community Website: PPUG.org
    👥 Join our Community: Power Platform User Group
     
  • IP-13011644-0 Profile Picture
    3 on at
    Hello @CFernandes. Thanks for your answer!

    I tried what you suggested, but it didnt work: 
    "The input parameters for the 'Calendars' operation contain invalid expressions. Correct the invalid expressions in the input parameters for the 'Calendars' operation."
    If you want more details to clarify my ambient, just accept my connect request on linkedin!
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at
    @IP-13011644-0 

    Sure, good morning.

    It would be helpful if you could also post the details here. I work a 9–5 schedule and don’t have access to LinkedIn or the forum outside of breaks, so sharing the information here will allow others to assist as well and help avoid any delays.


    If it helped you, please click "Does this answer your question?" and give it a like or mark it as Solution, it helps others in the community find answers more easily!
    Connect With Me:
    💼 LinkedIn: Clavin Fernandes
    📺 YouTube: Clavin Fernandes
    📝 Blog: clavinfernandes.wordpress.com
    🌐 Community Website: PPUG.org
    👥 Join our Community: Power Platform User Group
  • Srini007 Profile Picture
    3,483 Super User 2026 Season 1 on at
     
    Why don't you try pasting the image inside the post itself, if not allowed for attachment
     
     

    (If this answers your question you can mark as Answered and give it a Like)

    Regards,
    Srini

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard