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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Advanced Condition - @...
Power Automate
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!

Categories:
I have the same question (0)
  • Jaden Profile Picture
    Microsoft Employee on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard