cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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 blog

Power Automate Video Tutorials

View solution in original post

1 REPLY 1
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 blog

Power Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,125)