web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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')

I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at
    Re: odata filter - scheduled workflow

    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
    Re: odata filter - scheduled workflow

    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

Coming soon: forum hierarchy changes

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard