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 / How to test statuscode...
Power Automate
Unanswered

How to test statuscode Active or not in List Rows action

(0) ShareShare
ReportReport
Posted on by 150

Hello. I don't find an answer to that in the documentation or the community... I build an model driven app and in all workflows I need to eliminate deactivate records. I have tried several things around this syntax (with quotes, etc.) but no one works. Error message is "Term 'statuscode eq Active' is not valid in a $select or $expand expression". Thanks for you help!

Gilles12_0-1699459896744.png

 

Categories:
I have the same question (0)
  • Anchov Profile Picture
    1,986 on at

    I don't believe you need to add the statuscode OData filter in "Expand Query"; instead, you can include the filter in your "Filter Rows" action using the 'and' operator. As I understand it, the expand query is used to fetch related rows in related tables. Additionally, you can use '1' as the value for Active records.

    Verified example:

    Anchov_0-1699639371231.png


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

  • Gilles12 Profile Picture
    150 on at

    Thank you very much Anchov, I'll try this. As soon as I will get back access to the platform (see my other post a few minutes ago... being stuck all day but new firewall configuration to apply and don't know how to do...)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard