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 / please help me fix my ...
Power Automate
Answered

please help me fix my easy trigger conditions code

(0) ShareShare
ReportReport
Posted on by 359

hi. sorry i don't know much about expressions, but i'm eager to learn and followed tutorials.

 

setting up a flow for people to receive an email when the status of a sharepoint field dropdown changes to "closed"

 

Is the below the correct formula to enter for trigger conditions?

 

@equals(triggerBody()?['Status']?['Closed'])

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,028 Most Valuable Professional on at

    Your code is looking for a field called 'Closed' not checking a value.  Here's the right code.

    @equals(triggerBody()?['Status']?['value'],'Closed') 

    That's assuming you are using a choice field. 

  • cchan000 Profile Picture
    359 on at

    @Pstork1 

     

    hi. i have one more question related to the answer you have given me.

     

    i want it to trigger if the value equals Closed or Declined. how do i add an OR statement at the end?

     

    equals(triggerBody()?['Status']?['Value'],'Closed')
  • Pstork1 Profile Picture
    69,028 Most Valuable Professional on at

    YOu wouldn't add it at the end.  YOu would wrap the whole thing in an @or

    @or(equals(triggerBody()?['Status']?['value'],'Closed'),equals(triggerBody()?['Status']?['value'],'Pending'))

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard