cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Get Files Modified column filter

Hi Community Team, 

 

I am having issues writing a filter query for the sharepoint get files (properties only) module. I have tried the following: 

 

Modified gt '2020-05-21T16:00:00Z'

 

I am using the default Modified column as reference for the expression. 

 

Essentially I would like to have files modified yesterday after 4pm. Everytime I run it i get the following details: 

The expression "Modified gt '2020-05-21T16:00:00Z" is not valid. Creating query failed.

What am I missing? 

 

Kind Regards, 

Nathaniel

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Get Files Modified column filter

Hi @nsilv_le ,

 

You could also create the filter query directly as below:

1.png

concat(formatDateTime(addDays(utcNow(),-1),'yyyy-MM-ddT16:00:00Z'))

 

Or you could enter the below expression directly.

Modified gt '@{concat(formatDateTime(addDays(utcNow(),-1),'yyyy-MM-ddT16:00:00Z'))}'

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
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

2 REPLIES 2
Highlighted
Frequent Visitor

Re: Get Files Modified column filter

@nsilv_le , I believe you are just experiencing a syntax issue. I was able to replicate your exact error message by omitting the closing single quote (') at the end of your Filter Query. Posting my functional version here for reference. 

 

PowerAutomateCommunityForum-FilterQueryDateYesterday.png

 

FYI - 'Yesterday' Expression used:

formatDateTime(addDays(utcNow(),-1),'yyyy-MM-dd')
 
Hope that helps!
Highlighted
Community Support
Community Support

Re: Get Files Modified column filter

Hi @nsilv_le ,

 

You could also create the filter query directly as below:

1.png

concat(formatDateTime(addDays(utcNow(),-1),'yyyy-MM-ddT16:00:00Z'))

 

Or you could enter the below expression directly.

Modified gt '@{concat(formatDateTime(addDays(utcNow(),-1),'yyyy-MM-ddT16:00:00Z'))}'

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
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
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (6,852)