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 / I try to compare a cho...
Power Automate
Answered

I try to compare a choice field with an text value

(1) ShareShare
ReportReport
Posted on by 261

Hello

 

I have a choice field what I like to compare with an value. I don't want to use a textfield column.

The choices are Approved, Rejected and Canceled and the field name ist Status 😉

 

I tried different ways and I always get no result:

 

(1) I used the following formula:  @equals(triggerBody()?['Status']?['Value'], 'APPROVED')   ===> NOT WORKING

     But it shows the coorrect VALUE 😉

(2) I used SELECT AND JOIN but in Join I get as result:  {"Status":"CANCELED"}   ===> NOT WORKING

 

Interesting on point (2) was that I needed to set the field in brackets [FIELDNAME] not to get the error:

"The 'from' property value in the 'select' action inputs is of type 'Object'. The value must be an array."

But still not working !!!

Later on I used the following: https://www.youtube.com/watch?v=OXEcLqDvCrc

So I can say, it always NOT working.

 

If sombody has an idea its most apprechiated 😉

Thanks in advance.

Cheers

 

Michael

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @MD2024 Try this:

    @equals(triggerBody()?['Status/Value'], 'APPROVED') 

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • Verified answer
    MD2024 Profile Picture
    261 on at

    Thanks, I used items('Apply_to_each')?['Status']?['Value'] and it is working, but thanks 😉

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard