cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
parry2k
Level: Powered On

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 Team
Community Support Team

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.
guru421421
Level: Power Up

Re: SQL Server Get Rows - How to add filter

I even looking for this . any suggestion?

BraneyBI
Level: Powered On

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

 

 

itkylam
Level: Powered On

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.

BraneyBI
Level: Powered On

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.

guru421421
Level: Power Up

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

guru421421
Level: Power Up

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

guru421421
Level: Power Up

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

guru421421
Level: Power Up

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 244 members 6,336 guests
Please welcome our newest community members: