Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Advanced Condition - @and requires two booleans

(0) ShareShare
ReportReport
Posted on by 94

Hello everybody,

 

I have the following condition in my flow

 

@and(triggerBody()?['Active'], bool(1), not(empty(item()['Email'])))

 

It should return true if the 'Active' field is true AND if the 'Email' field is not empty, but upon running it returns the following error

 

"Unable to process template language expressions for action 'Condition' at line '1' and column '1964': 'The template language function 'and' expects all of its parameters to be booleans. Found invalid parameter types: 'Null'.'."

 

'Active' is a boolean field but the 'Email' field is a string. The function is just an emptyness check on the field.

 

Thanks for any help!

  • Jaden Profile Picture
    Microsoft Employee on at
    Re: Advanced Condition - @and requires two booleans

    Hi Chris - is it intentional that you are passing and(val1, val2, val3) ?

     

    Normally, there would only be two values. Also, bool(1) is true and is normally redundant in checking for truth within an "and" statement.

     

    One other thing is 'Active' could have a value of "true" (string) or simply true (boolean) - are you sure this field is returning a boolean "true" and not a string "true"?

     

    Elaborating more on this type will help us help you more.

     

    Also, feel free to paste the Flow ID here so we can have someone take a look.

     

    Thanks!

    Jade

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1