cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

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
BrianOfTheWeb
Frequent Visitor

@Anonymous , 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!
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (65,157)