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

Users online (1,998)