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 / odata filter - schedul...
Power Automate
Answered

odata filter - scheduled workflow

(0) ShareShare
ReportReport
Posted on by 407

I have set the ODATA filter as IssueStatus eq 'DTC to Verify' which works fine to send them a list of all of issues that need to be reviewed.

 

The problem I'm running into is that even when there aren't any issues set with the status of DTC to Verify, it's still sending an email but an empty list which is a bit goofy.  I only want an email to be sent if there are issues.

 

Is there a way to get it to NOT run if there aren't any under that status? I tried adding the Trigger below, but when trying to test (using manual) it errors and comes up with Cannot read property 'properties' of undefined. Or Maybe this is ok and it's supposed to do that?

@equals(triggerBody()?['IssueStatus']?['Value'],'DTC to Verify')

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @DCNehs ,

    scheduled flows are not connected to any item/file, therefore, you can't use any list/library property in the trigger condition. But you can check if the 'Get items' found any items that fit the filter, and send the email only if it did.

    Add a 'Condition' after the 'Get items' that will check if the length(...) of the 'value' output is greater than 0 (an item was found). If it's greater, process the data and send an email. If it's not, do nothing.

    image.png

     

  • DCNehs Profile Picture
    407 on at

    Ahhh, that would make sense with the trigger.  This did the trick very neat for someone still learning.  Probably not so much for you 🙂

     

    Thanks so much!  This will definitely come in handy and now i have a bit better understanding about length.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard