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 / Condition And Or not w...
Power Automate
Unanswered

Condition And Or not working

(0) ShareShare
ReportReport
Posted on by 261

I am struggling with the AND OR condition. I have a column ‘ApprovalStaus’ which is set as a choice and dropdown (Pending, Approved and rejected), this dropdown gets updated via an approval flow, I then have a column ‘FAQ’ set to single line text.

 

I am trying to set up a condition that if ApprovalStaus equals to Approved AND FAQ is NOT empty (not null) OR ApprovalStatu equals Rejected the condition is True

 

I have set the below:

1.JPG

But I receive this error:

Unable to process template language expressions for action 'Condition' at line '1' and column '13132': 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Null' are incompatible. Please see https://aka.ms/logicexpressions#contains for usage details.'.

 

I have also tried:

2.jpg

And get this error:

Unable to process template language expressions for action 'Condition' at line '1' and column '13133': '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 'Boolean'.'.

 

Also using the empty syntax I don't get anywhere

not(equals(triggerOutputs()?['body/FAQ'], empty))

 

What am I doing wrong?

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    @mtagliaferri 

     

    Probably because FAQ is a string and not an array. 

     

    Your 2nd version would work if you set the is equal to 'true'

     

    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

  • mtagliaferri Profile Picture
    261 on at

    @DamoBird365 

     

    Thanks I solved the issue of the FAQ part triggering, but I am still having problems with the OR condition, it is still returning False

     

    Basically I am in need to return True when Approved and FAQ not empty, or if the approval is Rejected.

     

    I don't understand why the approach I have taken would not work.

    Capture.JPG

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

    Are you looking for this?

     

    DamoBird365_0-1617106153197.png

     

    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

  • mtagliaferri Profile Picture
    261 on at

    @DamoBird365 That has done the trick!! thanks very much for the help!!

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard