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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (19,237)