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

Excluding records from a previous selection

Hi,

 

I'm getting some records from a query in SQL and I need to exclude from that selection records that are in an excel. Example: From SQL query I'm getting:

 

A, B, C

 

and on a Excel I have the record A, so I need to exclude the record A to continue with the flow. How can I do tht? Thanks for the help. 

 

Ezequiel

3 REPLIES 3
Super User
Super User

Re: Excluding records from a previous selection

Hi @ezequiel 

 

There are different ways you could do this. You can use the excel OData Query Filter 'ne' (Not Equal). Another way you could try is the Filter Array with the value you want.

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: Excluding records from a previous selection

Hi @ezequiel ,

 

As @abm  said, the requirement that you mentioned could be achieved with microsoft flow, and you could take a try with the "Filter Array" action.

Please take a try and let know if you have any problem when you create the flow.

 

Best regards,

Alice       

 

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

 

ezequiel
Level: Powered On

Re: Excluding records from a previous selection

Hi Alice

 

Thanks for your email. Let me explain what I'm doing and I appreciate if you can tell me if this is right:

 

1. I'm getting values from a SQL query (10 Ids)

2. I have an excel that contains a column with IDs also 

3. I need to send an email (1 per ID) unless the ID is on the excel 

 

I'm getting the values from the SQL and the excel, I added the Filter Array, but I'm lost how to apply it. The problem I'm facing is how to have the flow skipping those IDs found on the Excel. I made the flow below thinking that only emails are being sent if the SQL value is not found on the Excel, but it is not working and the process keeps sending 10 emails.

 

Thanks

 

Ezequiel

 

Capture.JPG

 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

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!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,747)