cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Commander
Kudo Commander

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
Highlighted
Kudo Commander
Kudo Commander

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
Highlighted
Kudo Commander
Kudo Commander

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

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 (12,063)