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 / Conditional query expr...
Power Automate
Answered

Conditional query expression for Status equals Active

(0) ShareShare
ReportReport
Posted on by

Hi, 

I want my Power automate/Flow to be triggered for Dynamics 365 records only when those records have the status active and not when status equals inactive. But this expression @equals(triggerBody()?['status'],active) does not seem to work, any ideas?

Thanks. 

Categories:
  • Verified answer
    JohnAageAnderse Profile Picture
    1,986 on at

    Hello @POJA85 

    The status value - is it active or 'active'?

    Kind regards, John

  • POJA85 Profile Picture
    on at

    Thank you @JohnAageAnderse 

    I changed it to @equals(triggerBody()?['Status'],'active') and it was accepted. 

  • Verified answer
    POJA85 Profile Picture
    on at

    Sorry, correct query is @equals(triggerOutputs()?['body/statecode'], 0)

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard