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 Platform Community / Forums / Power Automate / Filter array contains ...
Power Automate
Answered

Filter array contains not - multiple filters

(0) ShareShare
ReportReport
Posted on by 1,097

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 ..

 

 

 

 

Categories:
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    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

  • swanders Profile Picture
    45 on at

    Thank you @DamoBird365, this helped me a bunch!

  • premankur_s Profile Picture
    13 on at

    I am trying to  check that it does not contains Null but it is not working for me. Giving this error:

    The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard