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 Pages / Subgrid Metadata filter
Power Pages
Unanswered

Subgrid Metadata filter

(0) ShareShare
ReportReport
Posted on by 323

Hi,

 

I have enabled the 'Edit' item action and noticed a "Filter Criteria" attribute. What does this do and what is the syntax for the filter? Can we use this to enable/disable the 'Edit' option on an item in the subgrid?

 

prathyoo_0-1714594627370.png

 

 

I noticed that the below documentation does not mention the "Filter Criteria"

 

Configure basic form subgrids for Power Pages | Microsoft Learn

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,528 Super User 2026 Season 1 on at

    It allows you to put a simple FetchXML condition which if it matches will show the button/link if not will hide it.  e.g. you can have 2 Edit buttons, one for Status Reason is A and another for Status Reason is B and only show one button or none based on the Status Reason of the record in the List/Grid

    Think this is still true, for a List you can get away with just the Filter part of the FetchXML, for a Subgrid need to include a full fetch statement.

    <filter type="and">
     <condition attribute="statuscode" operator="eq" value="1" />
    </filter>

     

     

  • psreek Profile Picture
    323 on at

    Thanks so much. We tested and yes the Subgrid Item Action filter needs the entire FetchXML.

     

    prathyoo_0-1714633559122.png

     

     

     

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    I have a blog post on this one that might help: Power Apps Portals – Entity List: Conditional Action – Oliver Rodrigues (oliverrodrigues365.com)

  • psreek Profile Picture
    323 on at

    It worked and now it doesn't. So, it worked for the first subgrid where we enabled the 'Withdraw' button only when the Approval Status is not equal to 'Withdrawn'.

     

    Next up we wanted to disable the Edit option in the Contact subgrid when the Relationship Type = Focal Point and enable otherwise. We followed the exact same steps and yet the Edit option is still available -

     

    prathyoo_0-1715250239742.png

    <fetch version="1.0″ output-format="xml-platform" mapping="logical" distinct="false">
     <entity name="contact">
     <filter type="and">
     <condition attribute="customertypecode" operator="ne" value="452950001" />
     </filter>
     </entity>
    </fetch>

     

    prathyoo_1-1715250299479.png

     

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Can you try your fetch like below, removing the additional attributes from the fetch tag: 

     

    <fetch>
     <entity name="contact">
     <filter type="and">
     <condition attribute="customertypecode" operator="ne" value="452950001" />
     </filter>
     </entity>
    </fetch>

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 Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 38 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 35

#3
Fubar Profile Picture

Fubar 23 Super User 2026 Season 1

Last 30 days Overall leaderboard