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

Less than Date

Hi.

 

I have a SQL data extraction and I need to filter the table by a field called "StartDate". 

I tried: 

 

Capture.JPG

and the same adding ''

 

Capture.JPG

 

but none of those are working, getting the following error (If I remove the last filter everything works fine). How should I set the operator less than the Date field?

{
"error": {
"code": 502,
"source": "firstrelease-001.azure-apim.net",
"clientRequestId": "1821bc4e-2b9e-43bf-b1c1-ddcf8bc916b3",
"message": "The response is not in a JSON format."
}
}

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Less than Date

Hi @ezequiel 

 

What's your StartDate Format? Most likely you need to format your utcnow in that format. 

 

Check this post https://powerusers.microsoft.com/t5/General-Flow-Discussion/SQL-OData-UTC-Now/td-p/71005

 



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
Highlighted
Microsoft
Microsoft

Re: Less than Date

Hi,

 

This is the format of the field....any suggestion? Thanks!

 

Capture.JPG

 

Ezequiel

Highlighted
Super User III
Super User III

Re: Less than Date

Hi @ezequiel 

 

Could you please post a screenshot of the startdate how it is stored in sql. If you don't have direct access then post a runtime history of sql data. This will show how the data is stored.



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
Highlighted
Microsoft
Microsoft

Re: Less than Date

@abmhere you go!

 

Capture.JPG

Highlighted
Super User III
Super User III

Re: Less than Date

Thanks for your reply. Try to use this expression and compare formatDateTime(utcnow(), 'yyyy-MM-dd')



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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,661)