Showing results for 
Search instead for 
Did you mean: 
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:
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"
Super User III
Super User III

Re: OData error for select a Sharepoint element



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.


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


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

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)}'



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


Super User Program Update

Three Super User rank tiers have been launched!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (9,066)