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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,218)