
Announcements
I have a flow with a SQL Get Rows action. The action has a simple filter:
AsofDate eq '2015-06-16'
When I trace the query using SQL Pofiler, I see that flow is sending the following SQL for the where clause:
execute sp_executesql N'select top 1 (omitted columns and tablename) where 0 = 1'
Any idea why Flow is sending 0 = 1 for the where clause? This does not make any sense. The Get Rows action is returning an empty result set. The table has many records with that value in that column.
Flow Result:
Action Configuration:
I also tried the date with single quotes around it. I also tried typing the date without the formula, like '2015-06-16'.
The column is a Date column.
Hi jonathanO,
Please take this doc for a reference:
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests
For your scenario, you may try to use the following function:
Year(birthday) eq 2017 and month(birthday) eq 10 and day(birthday) eq 06
I have tested it on my side, and it is working fine.
Please try it on your side. Hope this could be a reference for you.
Best regards,
Mabel Mao