cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rpskt
Helper I
Helper I

Using Variable/Compose output in Filter Array Condition advanced mode

Hi,

 

I am doing concat the formula in compose and would like to refer this in Filter Array condition. This is to find multiple dynamic invoices to filter. Could you please help.

Thanks

 

rpskt_3-1624966662028.png

highlighted are dynamic values from input

 

 

rpskt_1-1624966561654.png

Error:

rpskt_2-1624966593723.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

You can use a variable value in the filter array logic.  But you can't pre-build the logic.  Building the logic out as string and then using it would open you up for the equivalent of a SQL injection attack.  That would be a security loophole.  I can easily think of ways to do this if its a fixed number of values, but a dynamic array of values would be tough.  I suspect you would need to do a filter array on each value and then combine the resulting arrays.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
rpskt
Helper I
Helper I

@Pstork1 

Any help please?

Pstork1
Dual Super User III
Dual Super User III

You can't write logic in a compose or variable to filter an array. You have to do the logic in the filter array action itself.  Here's a simple example

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

The requirement is to filter dynamic values from previous output. How could be possible?

Example:

invoice- 123,124,125 (i receive the input like this which is dynamic)

So, need to filter the records when invoice =123 or invoice=124 or invoice =125 

 

Pstork1
Dual Super User III
Dual Super User III

You can use a variable value in the filter array logic.  But you can't pre-build the logic.  Building the logic out as string and then using it would open you up for the equivalent of a SQL injection attack.  That would be a security loophole.  I can easily think of ways to do this if its a fixed number of values, but a dynamic array of values would be tough.  I suspect you would need to do a filter array on each value and then combine the resulting arrays.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

rpskt
Helper I
Helper I

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,619)