Re: SQL connector Get Rows action filter query for datetime error
I did some testing on one of my demo databases in Azure SQL. For a field that is DateTime here is what worked for me (The field is named DateTime in my database)
If you want to filter just on the Date portion and ignore the time these both work
DateTime ge date(2020-10-13T12:00:00.000)
DateTime ge date(2020-10-13T12:00:00.000Z)
If you want to filter on the whole Timestring these work
DateTime ge '2020-10-13T12:00:00.000'
DateTime ge '2020-10-13T12:00:00.000Z'
Note the use of single quotes when doing the whole thing and the lack of them when not.
And if you need to adjust the target date do that using the Power Automate functions.
Here's the function for that query
formatDateTime(addDays('2020-10-13T12:00:00.000Z', 10),'yyyy-MM-ddThh:mm:ss.000')
The key is that the timestring needs to be either ISO 8601 compliant or timezone independent. SQL prefers the timezone independent format