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 / If expression to displ...
Power Automate
Answered

If expression to display text

(0) ShareShare
ReportReport
Posted on by

Hi

 

Let me know what is wrong with this 'if expression'. I'm trying to display what Text to display in an Approvals depending on a field.

I want to use one Approval, so don't want to use a condition.

 

if(equals(body('Get_item')?['body/AccessType/Value'], 'Temporary'),'Expiry Duration','')
 
if(equals(triggerOutputs()?['body/AccessType/Value'], 'Temporary'),'Expiry Duration','')
 
I'm trying to test this before I apply it to to my flow but the condition is always giving false even though the value is Temporary. I'm using the Get Item for testing for now
Categories:
I have the same question (0)
  • Verified answer
    365-Assist Profile Picture
    2,327 Moderator on at

    My suggestion is put the results of your IF Function in a variable. Then use the Variable in your Condition.

    You can also see what the value of the variable is.

     

    --------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard