cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
livingstonep
Kudo Kingpin
Kudo Kingpin

Flow cannot use choice column in OData Filter of SharePoint Get Items step

We are building a flow that will Get Items from a SharePoint List and filter based on a choice column called Status looking for only certain values such as Pending, Approved etc.

 

What we want to do is

  1. manually trigger the flow (later on it will be a recurrence on a schedule),
  2. then Get Items from our SharePoint List ContractDataBase
  3. then somehow filter the output of Get Items (inside an Apply to each) where the Status column = "Pending"
  4. output that to an MS Excel table in a file.

 

When we tried doing it with a second Get Items filtering the first Get Items we can only see Status Value (no "Status" column"), so we get errors like "Approved is not a column name"...

Contracts Report 1.JPGContracts Report 2.JPGContracts Report 3.JPG

 

So, we thought we could use a Filter array step as below unfortunately, the output of the Filter Array step is not available, only the Apply to each:

Contracts Report 4.JPG

 

So how do we do what we are trying to do...we need to be able to filter the SP list based on the Status choice column, and output the filtered dataset to our MS Excel report

1 ACCEPTED SOLUTION

Accepted Solutions
livingstonep
Kudo Kingpin
Kudo Kingpin

we found the solution.

 

it turns out that you can reference the same list in the OData filter query, just you cannot choose the columns dynamically:

Contracts Report 5.JPG

 

so in our case, all we had to do was write column name eq value

status eq 'pending'

 

View solution in original post

1 REPLY 1
livingstonep
Kudo Kingpin
Kudo Kingpin

we found the solution.

 

it turns out that you can reference the same list in the OData filter query, just you cannot choose the columns dynamically:

Contracts Report 5.JPG

 

so in our case, all we had to do was write column name eq value

status eq 'pending'

 

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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
Top Kudoed Authors
Users online (2,940)