cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: SQL Server Get Rows - How to add filter

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.
Highlighted
New Member

Re: SQL Server Get Rows - How to add filter

I even looking for this . any suggestion?

Highlighted
Frequent Visitor

Re: SQL Server Get Rows - How to add filter

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

 

 

Highlighted
Frequent Visitor

Re: SQL Server Get Rows - How to add filter

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

Thanks for your attention.

Highlighted
Frequent Visitor

Re: SQL Server Get Rows - How to add filter

@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.

Highlighted
New Member

Re: SQL Server Get Rows - How to add filter

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

Highlighted
New Member

Re: SQL Server Get Rows - How to add filter

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

Highlighted
New Member

Re: SQL Server Get Rows - How to add filter

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

Highlighted
New Member

Re: SQL Server Get Rows - How to add filter

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,989)