cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Oskarkuus
Post Prodigy
Post Prodigy

Filter array contains not - multiple filters

I need help to figure out how to do this filter array

 

I want to exclude two things.

So i use not contains

 

@And(not(contains(item()?['UserPrincipalName'], 'TUXT'),contains(item()?['UserPrincipalName'],'EXT')))

 

But i get error when i run the flow

Execution of the template action Filter matrix failed: The evaluation of the query action "there" expression @and (not (contains (item ()? ['UserPrincipalName'], 'TUXT'), contains (item ()? ['UserPrincipalName') ], 'EXT'))) failed: The template language function does not expect a parameter, namely the Boolean value to be ignored. The function was called with 2 parameters. More information is available at https://aka.ms/logicexpressions#not ..

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Community Champion
Community Champion

Hey @Oskarkuus 

 

I think you have your brackets in the wrong place for your not.

 

try 

@And(not(contains(item()?['UserPrincipalName'], 'TUXT')),contains(item()?['UserPrincipalName'],'EXT'))

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

View solution in original post

1 REPLY 1
DamoBird365
Community Champion
Community Champion

Hey @Oskarkuus 

 

I think you have your brackets in the wrong place for your not.

 

try 

@And(not(contains(item()?['UserPrincipalName'], 'TUXT')),contains(item()?['UserPrincipalName'],'EXT'))

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (36,683)