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

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

@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

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
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.

Top Solution Authors
Top Kudoed Authors
Users online (1,860)