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
Super User

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
abm
Super User
Super User

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

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,962)