cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nbrady
Microsoft
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
nbrady
Microsoft
Microsoft

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
nbrady
Microsoft
Microsoft

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

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,557)