cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft ezequiel
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
Super User
Super User

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!



Microsoft ezequiel
Microsoft

Re: Less than Date

Hi,

 

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

 

Capture.JPG

 

Ezequiel

Super User
Super User

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!



Microsoft ezequiel
Microsoft

Re: Less than Date

@abmhere you go!

 

Capture.JPG

Super User
Super User

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!



Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

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

thirdimage

Power Automate Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,883)