Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get Items and Filter Array - To Send Email Based on Calculated Date Column

I have set up a Flow using Recurrence as a trigger in a list containing items with a Date and an UpdateEmailRecipientsDate (which is a calculated column 7 days prior to the Date column). Because I could not use the UpdateEmailRecipientsDate directly in the Get Items (due to it being a calculated date and throwing an error), I stumbled on a post on this Forum suggesting a Filter Array might be a solution (though that post was for a library and not a list).


My Flow is as follows:  Reccurrence (daily at 7 a.m.; I did select a time zone) > Get Items > Filter Array > Send an Email. The email should not send if there are no items where the UpdateEmailRecipientsDate is not equal to the current date. As set up, the Flow is sending out an email even when there is no entry with the UpdateEmailRecipientsDate equal to the current date (almost as if it is always reading the filter array as being true).


I have used the following expression to format utcnow for the comparison:

Can anyone help me identify why the expression is always reading as true even when UpdateEmailRecipientsDate is not equal to the current date? I did check that the calculated column was set to display as date (and not date and time). Thanks in advance.FilterArrayFlowIssue.JPG


Memorable Member
Memorable Member

Hello @Anonymous 


You should not need the Filter Array action! You should be able to use the Filter Query field in the Get Items action like this:

<your date field real name> gt '<expresssion: formatDateTime(addDays(utcNow(),-7),'yyyy-MM-dd')>'


Note that there are single quotes around the expression!

Try it out and tell us how it went.


You will have to add a Condition action before your Send an email notification, in which you test that items where found 🙂


Flow.Hilowflow44.get items filter query condition.jpg

Kind regards, John

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,559)