Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

SQL Get Rows with ODATA Query (Date as string in SQL) against UTCnow())



I have a MySQL-table, in which we add records (of Corona tests) daily. I have to delete the records after 2 weeks. In the table I store the date that the record was created as a string in the column 'testdatum' as "dd.MM.yyyy hh:mm:ss" so I can display it properly in PowerApps.


What I want to do is have  a recurring flow that will compare the records in the SQL database with the current time and delete the rows in the table that are older than 13 days and that will update another table to mark the student as 'untested'.


I'm struggling with the odata-query to filter the Get Rows action.


I'm trying to compare this expression to the one stored in the table, but don't know how to do it: 



Maybe I should store the datevalue in a variable to make the flow not have to calculate it for every line.


I'm looking forward to your answers.


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,693)