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 / Filter ODATA not filte...
Power Automate
Unanswered

Filter ODATA not filtering by date correctly

(0) ShareShare
ReportReport
Posted on by 136

Hello 

 

I need some help with the flow. The date filter is not working as it should. 

It is a recurrent flow that should send emails on the 1st of each month with tasks allocated for that month only e.g 1 - 31 Jan.

On GetItems i have 

nattt7_0-1704416324740.png

StartDate ge ' @{formatDateTime(addToTime(startOfMonth(utcNow()), 1, 'day'), 'yyyy-MM-01THH:mm:ssZ')}' and EndDate le '@{formatDateTime(addToTime(startOfMonth(utcNow()), 30, 'day'), 'yyyy-MM-ddTHH:mm:ssZ')}'

 

but in January the flow started from Week 2 (08/01) instead of Week 1 (01/01) 

 

SP list

nattt7_2-1704416427537.png

 

Email 

nattt7_1-1704416410789.png

 

any ideas?

Categories:
I have the same question (0)
  • shoog Profile Picture
    2,164 on at

    The problem is you are adding a day to start of the month, removing that should fix your issue.

    So you are checking for start dates greater or equal to January 2nd instead of January 1st, which for your data does mean January 8 is the first line to process.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard