Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Filter Array not working with user input as variable

(0) ShareShare
ReportReport
Posted on by 20

I am creating a flow where a certain set of users from a table are presented to the user in PVA based on their department and which specific row of information they are looking for. I'm using user input from PVA to try to filter the data. 

I'm having an issue where if I use a variable that I created from their user input it will not properly filter an array. However, if I specify the data using a specific row, it does work. 

 

For example, this flow creates output in the filer array:

flow1.png

 

But this one presents no output in the filter array:

flow2.png

I've confirmed in the run history that the variables are getting the correct values. Everything looks perfectly correct, and perfectly the same between the two flows, until it hits the filter array. Then, the latter produces no output. I've even had the AuthOption variable presented back to PVA and it's passing the right data (the user input). 

 

Can someone tell me what I'm missing please? Thank you! 

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Filter Array not working with user input as variable

    @skerbel Got what you mean now. I didn't realize that AuthOption contained the actual column name you were trying to retrieve.

     

    What I'd suggest is to look at the column names and ensure they are the internal names of the columns, not just the display names. So, after running List rows present in a table, have a look at the output and ensure the column names you see in the JSON output exactly match what is being stored in your AuthOption variable.

  • skerbel Profile Picture
    20 on at
    Re: Filter Array not working with user input as variable

    I'm sorry if I'm being dense, but the issue is that the AuthOption variable changes based on the user input. So if I choose a specific column name in the filter array, the array will work, but it's not getting the dynamic input from the user, so it will only provide one column of data. 

     

    I've set the user input to be exactly what the table columns are named, and it shows in the variable correctly, but when it hits the filter array, there's no output. 

     

    If it helps, the structure of the table has the names of the columns left to right, which correspond to the user input, and then TRUE or FALSE in the rows. So every time a user chooses a different column, it would provide a different set of TRUE or FALSE data. 

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Filter Array not working with user input as variable

    As mentioned, in your second Filter array you need to add the Auth field from List rows present in a table and check to see if that contains (or equals) the value stored in your AuthOption variable.

     

    grantjenkins_0-1670161486049.png

     

  • skerbel Profile Picture
    20 on at
    Re: Filter Array not working with user input as variable

    Thank you for your response. The issue is the value of the variable changes depending on the user selection, so I can't just choose a static value like in example 1. Is there a way I can define the value of the variable such that the filter array can read it correctly? 

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Filter Array not working with user input as variable

    @skerbel In the second flow, the filter array have filter of variable AuthOption contains True? I think you need to select the value from excel that contains certain value in filter array condition for it to make work.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow