cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eka24
Super User
Super User

Filter Table in SQL Getrow

Please my flow is working but i want to filter the Sql based on one of the fields in the sql table. 

I would then provide input in power apps. 

filter Sql Getrow.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @eka24 ,

 

It seems that you only need to configure the condition under the Get row action, and then determine whether the specified field value is in line with expectations, and if so, execute the following action.

You need to move the following actions to the IF yes branch.

Please take a try.

 

Best Regards,

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

View solution in original post

4 REPLIES 4
DTreg1
Advocate IV
Advocate IV

You'll need to study the ODATA type language for SQL filters, here's the link

 

https://www.odata.org/documentation/odata-version-3-0/url-conventions/ 

 

For example, if I wanted to filter on a Y/N column called [COMPLETE]...

 

COMPLETE eq 'Y'

 

Where COMPLETE is the name of the column, eq is equals, and 'Y' is the value I want to filter on in single quotes.

 

Few more common options:

gt is greater than

lt is less than

ge is greater than or equal to

le is less than or equal to

 

letter case does matter.

v-bacao-msft
Community Support
Community Support

 

Hi @eka24 ,

 

It seems that you only need to configure the condition under the Get row action, and then determine whether the specified field value is in line with expectations, and if so, execute the following action.

You need to move the following actions to the IF yes branch.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DTreg1
Advocate IV
Advocate IV

@eka24 

 

Right now you're using the "Get row" which will only ever return one single row as it requires a unique ID (ID needs to be passed to the SQL connector from PowerApps). If you're trying to filter a set of rows that could contain more than one, you'll want to use a different connector "Get Rows" in which case you will then be able to setup a filter like I described below.

I finally filtered the field in my powerapps and its working. I think your suggestion should also work for getrow. thank you

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,883)