cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Help filtering on date

I have a SP list that has a calculated column called 30DayFollowUpDate that takes the created date and adds 30 days to it.

 

I need to create a daily flow that goes out and gets the items where the 30DayFollowUpDate is greater than or equal to today and sends an email based on those records. I'm having issues figuring out the proper Filter Query.

Current code presenting error:

30DayFollowUpDate ge @{utcNow()}


Error:

The expression "30DayFollowUpDate ge 2020-06-17T15:21:21.2484341Z" is not valid. Creating query failed.


SharePoint column:

Login Screen.png 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Help filtering on date

 

Hi @kriggo15 ,

 

As far as I know, Calculated column cannot be configured as a filter in Filter Query.

Please try to use Condition or Filter array to filter items.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Help filtering on date

@kriggo15 your filter query is incorrect as it looks like you have typed the utcNow part. Instead add the expression into the Expression tab of the dynamic content box. Make sure that the expression in the Filter Query box is inside single quotes ' '

filterQueryUTCNow.png

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

 

Highlighted
Helper V
Helper V

Re: Help filtering on date

@RobElliott I should've included a screenshot of the actual flow, sorry about that. I was missing the single quotes but am still receiving an error when trying your format.

Error: 

The expression "30DayFollowUpDate ge '2020-06-17T15:43:49.8108829Z'" is not valid. Creating query failed.


flowfilter1.png

Highlighted
Super User III
Super User III

Re: Help filtering on date

@kriggo15 you could take out the filter query temporarily, add a compose control and for the input of that select the 30DAyFollowUpDate column from the dynamic content (it will wrap in an apply to each) and see what format it is in and that it is bringing it back at all.

Rob
Los Gallardos

Highlighted
Helper V
Helper V

Re: Help filtering on date

@RobElliott format came back as: 2020-05-28T15:56:27Z

Highlighted
Community Support
Community Support

Re: Help filtering on date

 

Hi @kriggo15 ,

 

As far as I know, Calculated column cannot be configured as a filter in Filter Query.

Please try to use Condition or Filter array to filter items.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,160)