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

Community site session details

Session Id : mmlV3FoLmnz/2QITwItycf
Power Automate - General Discussion
Answered

If expression to display text

Like (0) ShareShare
ReportReport
Posted on 25 Jul 2022 18:30:49 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
I have the same question (0)
  • Verified answer
    365-Assist Profile Picture
    2,316 Moderator on 25 Jul 2022 at 23:20:55
    Re: If expression to display text

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete