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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (13,275)