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 / Power Automate conditi...
Power Automate
Unanswered

Power Automate condition based on Yes/no Column

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I've a power automate that notify a manager with different fields from a sharepoint table.

 

One of those fields is the cost center and I need to create a condition that evaluates a yes/no column called OtherCC. If it's yes i wanna retrieve one column called "CCtoDebit"  from sharepoint list called Requests, otherwise, I want to retrieve "CostCenter" from sharepoint list called Users.

 

The lists are conected by lookup column and I'm doing the get items on flow.

 

I tried this way 

if(triggerOutputs()?['body/OtherCC']=true, triggerOutputs()?['body/CCtoDebit'], outputs('Get_item_from_Users')?['body/CostCenter']) but it always says expression invalid. I've also tried 1 instead of true and yes, with and without " or '. 
 
Any idea?
 
Best regards,
 
Miguel Teixeira
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Try dropping the '=true'.  I've had issues getting Power Automate to evaluate boolean values = true, but they work if you just use the boolean.

  • Community Power Platform Member Profile Picture
    on at

    Perfect, it's solved! 

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