cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft nbrady
Microsoft

Odata select unique rows

Hi #PowerAddicts, 

I have a situation where a user selects rows from a gallery in a Power App in which we use a flow in Power Automate to:

  1. create a collection of rows selected by ID and a count of rows in that collection
  2. Get Items from a SharePoint Online list, filter by ID(s), ordered by date ascending, and the top count is based upon a count of rows in the collection

We use this so an HTML table can be returned and emailed via the Power App; however, the flow only runs successfully when one row is selected, e.g.: ID eq 2349

However, any selection more than one and Get items step fails, e.g.:

  • Status 400: ID eq 2349, 2372
  • Status 400: ID eq 2349 and 2372
  • Status 200: ID eq 2349 and ID eq 2372, but no rows returned (blank array)

Is there some magic formatting like putting IDs in an array, e.g.: ID eq ['2349','2372'] or is it just Odata $select isn't supported yet?

In Triage by ID.png

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft nbrady
Microsoft

Re: Odata select unique rows

Solved my own problem from a previous solution:

ID eq 2349 or ID eq 2372

 

Previous solution: https://powerusers.microsoft.com/t5/General-Power-Automate/Get-Items-Filter-Query-oData-In-operator/...

View solution in original post

1 REPLY 1
Microsoft nbrady
Microsoft

Re: Odata select unique rows

Solved my own problem from a previous solution:

ID eq 2349 or ID eq 2372

 

Previous solution: https://powerusers.microsoft.com/t5/General-Power-Automate/Get-Items-Filter-Query-oData-In-operator/...

View solution in original post

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,528)