cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

OData error for select a Sharepoint element

I am trying to retrieve all the elements of a Sharepoint list that are not older than a day. Unfortunately, I get a mistake every time I try. I've read many help pages, but everywhere it looks a little different. Once eq stands, then Eq or gt and Qt.
Can someone help me with this specific query and also tell you where there is a good page with examples of how to use OData correctly on Microsoft Flow - by default with SharePoint lists?
Thank you very much for your help.

 

This is my OData Selection:
Created Gt addDays(utcnow('yyyy-MM-ddTHH:mm:ssZ'),-2)

inspired by:
https://flow.microsoft.com/en-us/blog/advanced-flow-of-the-week-filtering-with-odata/
I also tried it with lowercase letters.


My alst Error is: (in German)

"message": "Der Ausdruck \"Created Gt addDays(utcnow('yyyy-MM-ddTHH:mm:ssZ'),-2)\" ist ungültig.\r\nclientRequestId: d3b15755-bba2-476c-98e0-873dd63880e2\r\nserviceRequestId: f9ddbd9e-30dd-0000-6139-a25e4c10a351"
2 REPLIES 2
Highlighted
Super User III
Super User III

Re: OData error for select a Sharepoint element

@MartinZim:

 

Making the following changes should resolve the issue:

1) Change Gt to gt - needs to be ower case

2) Add single quotes on either side of your expression - see my screen shot below.

OD1.jpg

If this resolves your issue, please mark your post as Solved.

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Highlighted
Community Support
Community Support

Re: OData error for select a Sharepoint element

Hi @MartinZim,

 

Have your problem been solved refer to @ScottShearer's solution?

 

You could also take a try with expression below:

Created gt '@{addDays(utcnow('yyyy-MM-ddTHH:mm:ssZ'),-2)}'

Capture.PNG 

 

Best regards,

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.

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (3,905)