web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Query - Get Row...
Power Automate
Unanswered

Filter Query - Get Rows from SQL Server

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, 

I want to Get Rows from SQL Server that have been created precisely three days ago.

The data type of the column in SQL is date (no time). 


I tried the following, and the flow ran successfully, but I don't get any rows?

Date_x0020_Install eq '@{addDays(utcnow('yyyy-MM-dd'),-3)}'

 

The name of the column in SQL has space. That's why I have added "_x0020_".

 

seryil_0-1600690669438.png

 

Thank you in advance 🙂

 

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    hi @Anonymous with your expression you have this output

    2020-09-18T00:00:00.0000000

    So I if you need just the date you can try with this expression: 

    first(split(addDays(utcnow('yyyy-MM-dd'),-3),'T'))

    and your output could be like this:

    2020-09-18

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ChristianAbata


    The flow ran successfully, but again I didn't receive any rows.

     

    seryil_0-1600696426892.png

     

    My table has data from that date, so that isn't a problem.

     

    seryil_0-1600696586884.png

     

  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    ohh @Anonymous  your date Install is a string o Date format? Please try to get your data without Filter and then try to see what is the format that Power Automate is reading your data could be diferent.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ChristianAbata,

    This is the format in SQL

     

    seryil_0-1600760680399.png

     

    And this is the output in Power Automate:

     

    seryil_1-1600760812650.png

     



     

  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    thanks @Anonymous  please try with this expression

     

    concat(addDays(utcnow(),-3,'yyyy-MM-dd'),'T:00:00:00Z')
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ChristianAbata,

    Still no output 😞

     

    Date_x0020_Install eq '@{concat(addDays(utcnow(),-3, 'yyyy-MM-dd' ), 'T:00:00:00Z' )}'

     

    seryil_0-1600779274633.png

     

  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    @Anonymous  please make shure that you have data 19-09-2020 could you do a little search?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ChristianAbata Yes, I have data from that date. 

     

    seryil_0-1600779890674.png


    You had a colon between T and 0 in your expression. I assume that is incorrect?
    I removed it, and it still doesn't work. 

  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    weird @Anonymous  just to test something more, could you leave your SQL silter empty and then after this action can you add a filter array and test with the expression that I gave you?

     

    ChristianAbata_0-1600780306166.png

    filter array.PNG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ChristianAbata Doesn't work either. But I removed the filter and tried to search after the specific date in the output with CTRL + F, and it seems like I don't get all the rows from SQL. 

    If I search "Date_x0020_Install", then it can only find 1689 rows, and I have a lot more rows in the table in SQL.

     

    seryil_0-1600781273509.png

     

    Can it be true that there is a limit?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard