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 / Power Automate: Filter...
Power Automate
Answered

Power Automate: Filter All Day Events

(0) ShareShare
ReportReport
Posted on by 23

I am trying to use Power Automate to send a daily email showing entries from a shared calendar used to show who is out of the office that day. Some staff are out all day while others are only out part of the day. I can get it to work but it is confusing because all-day events are mixed in with partial events.

Schredder_0-1707843532287.png

To work around this, I tried to create two different tables: one for all-day events and the other for partial events.

I have tried several methods to get this to work but keep running into errors. I have tried the following.

  1. On the Get Calendar View of Events > Filter Query > isAllDay eq 'true'.  Error message saying “The expression is invalid”
  2. Tried adding a “Filter Array”
    1.  From: Outputs
    2. Filter Query: items()?['isAllDay'] is equal to True.
    3. Error message: Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The template action 'Create_HTML_table_1' at line '1' and column '3605' is not valid: "The template language function 'items' must have at least one parameter.".'.'.

Any insight and help is very much appreciated.

Schredder_1-1707843664587.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    SamLed Profile Picture
    2,338 Moderator on at

    Hi @Schredder,

     

    Replace items() by item(). First one is use for "Apply to each" or "Do until" loop, and take the name of the action as parameter, second one is use for actions like "Filter" or "select". Both refer to current item but is not used in same context. 

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • Verified answer
    SamLed Profile Picture
    2,338 Moderator on at

    Hi @Schredder,

     

    For your filter issue, change your query to (remove quotes) : isAllDay eq true

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • Verified answer
    Schredder Profile Picture
    23 on at

    That worked, thank you.

  • SamLed Profile Picture
    2,338 Moderator on at

    Hi @Schredder,

     

    Great, glad it is working. Please accept post(s) that helped you solve your issue as a solution. So other with same issue will spot the solution.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard