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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Passing a parameter in...
Power Automate
Answered

Passing a parameter into a List query filter

(0) ShareShare
ReportReport
Posted on by 216

Hi folks, 

 

I'm using "Get Items" in the flow, in which I used Filter Query to narrow the records and do an update on all records in the set. In the filter, I filtered out the "country" of a record. 

 

What I'm going to achieve is to have one single Flow but serves for multiple countries.

 

So can a parameter be passed to a Filter Query ? 

 

Thanks,
Gavin

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @gavinleung 

     

    Please take a look at the screenshot below: dddw.PNG

     

    Here, I am storing all the countries in an array variable and iterating over that array to get individual country in the filter query and finally updating items in the list returned from the filter query. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • gavinleung Profile Picture
    216 on at

    Hi @yashag2255 , this was absolutely great ! If the country list changes, the Flow needs to be changed too. So I think I shall use an Excel file to store the country list, so that the user or power user or the administrator can just change the file to get it running. 

     

    Let me try and let you know 🙂 

     

    Thanks,

    Gavin

  • Verified answer
    gavinleung Profile Picture
    216 on at

    @yashag2255 , thanks for giving me idea. In fact, I dont even need a variable to store the country list. Instead, I used a SP List to store the country list. First loop to get the list, and apply it into the Filter Query of another list. 

     

    Problem solved. 

     

    Thanks,
    Gavin

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard