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

ODATA Filter for date that's 4 days old?

I have a sharepoint list of contracts that I monitor for signatures. I want to create an automated reminder for items where the Date Created is 4 days prior to today's date, with the signature status "Pending". I have everything else built, but I'm having trouble figuring out the ODATA filter equation for dates. 

 

I limited the columns by the view Pending.

The Date Created data comes out in the yyyy-MM-dd format.

I used the Get Past Time function to grab the date 4 days prior to today's date.

I used the formatDateTime function to trim the Past Time to that same yyyy-MM-dd output.

 

This is the equation I have: 

Date Created eq 'formatDateTime(body('Get_Past_time'),'yyyy-MM-dd')'

 

I keep getting this error message: 

"status": 400,
"message": "The expression \"Date Created eq '2019-12-01'\" is not valid.

 

Anyone know what I'm doing wrong here?

flow1.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User III
Super User III

Hi @chanafee 

 

Your Date Created column name got a space.  Try Date_x0020_Created.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

1 REPLY 1
abm
Super User III
Super User III

Hi @chanafee 

 

Your Date Created column name got a space.  Try Date_x0020_Created.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
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!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (46,630)