cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

SQL Server Get Rows - How to add filter

Hello,

 

I'm new to flows and I am using Azure SQL to get rows and want to add filter after a table is selected? Not sure how I can do that, any guidance will be very helpful.

 

Thanks in advance,

P

9 REPLIES 9
Community Support
Community Support

Hi P,

 

You cannot add fiter after get rows in Flow,but you could post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Mona Li

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
New Member

I even looking for this . any suggestion?

Frequent Visitor

I just had the same issue.  I was able to add a filter to the "Get Rows" action.  

 

My table has a column [ParentStatus], in which I have two possible statuses:  "Parent OK" or "Parent Not Valid"

I used the "Filter Query" row to add a filter using ODATA syntax:  ParentStatus eq "Parent OK"

You can find a good primer on ODATA Syntax here: http://www.odata.org/getting-started/basic-tutorial/

Hope this helps you!!  Barbara Raney (BraneyBI)

FLOW Filter SQL Get Rows.png

 

 

I'm using Microsoft Flow, how can I use the Filter Query in "Microsoft Flow"?

Thanks for your attention.

@itkylam, can you be a bit more specific?  If you note the reponse above, I showed how to filter SQL using a Filter on the "SQL - Get Rows" flow object. Please give us more information on what you are trying to accomplish.

You can use below fomat.. if you want retriveve the rows where Emp name is 'Guru' order by desc

Table Name: Employee

Filter Query: EmployeeName eq 'Guru' (ColumnName eq 'ColumnValue')

Order By: InsertedTimeUtc desc

New Member

You can use below fomat.. if you want retriveve the rows where Emp name is 'Guru' order by desc

Table Name: Employee

Filter Query: EmployeeName eq 'Guru' (ColumnName eq 'ColumnValue')

Order By: InsertedTimeUtc desc

Click on 'Show advanced options' and then enter below details

 

You can use below fomat.. if you want retriveve the rows where Emp name is 'Guru' order by desc

Table Name: Employee

Filter Query: EmployeeName eq 'Guru' (ColumnName eq 'ColumnValue')

Order By: InsertedTimeUtc desc

Click on 'Show advanced options' and then enter below details

 

You can use below fomat.. if you want retriveve the rows where Emp name is 'Guru' order by desc

Table Name: Employee

Filter Query: EmployeeName eq 'Guru' (ColumnName eq 'ColumnValue')

Order By: InsertedTimeUtc desc

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (5,788)