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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic Filter Array A...
Power Automate
Answered

Dynamic Filter Array Action via multiple expressions in advance mode

(1) ShareShare
ReportReport
Posted on by 9

I am looking to pass multiple expressions through a power app function parameter to the filter array advance mode. 

 

3.png

 

For example: 
 
1. On my PowerApp, I am passing this expression to flow and saving it as a variable. 
2. Expression:

 

 

 

 

 

@or
contains(item()?['body'],variables('RawSearch')),
contains(item()?['Subject'], variables('RawSearch')),
contains(item()?['ccRecipients'], 'planet')
)
​

 

 

 

 

3. I then would like to use that variable as the "advance expression" block. 


1.png2.png
 
 

Things that I have tried:
1. Using the manual trigger flow and capture the expression passed as the triggerbody()['text_2'], which does get the expression as a string, but it doesn't recognize it once it goes through the filter action. 
2. leaving the "@" then adding the variable without "@" and vise versa. 

3. Passing everything together in one variable, triggerbody(). 

4. assigning it to a compose and passing that instead. 

The goal is to build the expression I need from the frontend/Powerapp and just passing that to the filter array dynamically. 

Categories:
I have the same question (0)
  • Verified answer
    robdev Profile Picture
    47 on at

    You can always try the following technique that requires you to build/deploy a very simple Azure function.  The gist of this approach is that you will write inline JavaScript in the HTTP action's body and have the Azure function evaluate this JavaScript code and return the results as a JSON object.  Have a look at the video at https://www.youtube.com/watch?v=L9UqHKF9H60&t=178s

     

    The following is an example of the technique in action:

    inline-js-in-powerautomate.png

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 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard