web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Filter Array

(1) ShareShare
ReportReport
Posted on by 271

Hi,

Need help in creating a flow, where output of the flow is based on filtered array values from a Canvas app.

Like a user makes multiple selections in a combo box, these selected values are to be used while filtering.

 

Regards

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,981 Most Valuable Professional on at

    Hi @Sam70 

     

    Could you post a sample data and how you would like to extract each values?

     

    Thanks

  • Sam70 Profile Picture
    271 on at

    Hi @abm ,

    Below is the screenshot of a canvas app. Here the user has selected multiple accounts. My requirement is that when the Retrieve button is clicked, a flow should trigger, and the output should be filtered records based on Account selection.

     

    Sam70_0-1709800533338.png

    Sam70_0-1709810217197.png(Sample Data Screenshot)

     

    Regards

     

  • abm abm Profile Picture
    32,981 Most Valuable Professional on at

    Hi @Sam70 

     

    Yes, you can filter records directly within your Canvas App based on the selections made in the multi-select dropdown without using Power Automate. Here's a general outline of how you can achieve this:

    1. Retrieve Account Records: Use a data source or connector in your Canvas App to retrieve the account records that you want to filter.

    2. Multi-Select Dropdown: Add a multi-select dropdown control to your Canvas App. Populate this dropdown with the relevant options that users can select to filter the account records.

    3. Filter Records On Selection Change: Use the OnChange property of the multi-select dropdown control to trigger filtering of account records whenever the selection changes. Within this property, write a formula to filter the account records based on the selected values from the dropdown.

    4. Update Data Source: Once the records are filtered based on the selection made in the dropdown, update the data source bound to your app to display only the filtered records.

    Here's a simplified example of what the formula might look like for filtering records in the OnChange property of the multi-select dropdown:

     

    A guide line of the filter:

     

    UpdateContext({ SelectedValues: Dropdown1.SelectedItems }); // Store selected values in a context variable

    If(
    IsEmpty(SelectedValues), // Check if any values are selected
    Reset(AccountDataSource), // If no values are selected, reset the datasource to show all records
    UpdateIf(
    AccountDataSource, // Your data source
    true, // Condition to update all records
    !IsEmpty(Filter(SelectedValues, Value in AccountName)), // Filter condition based on selected values
    false // Don't overwrite existing data
    )
    )

  • Sam70 Profile Picture
    271 on at

    Hi @abm , Need the same using Power Automate.

    Regards

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard