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 / Advanced filter criter...
Power Pages
Suggested Answer

Advanced filter criteria for action button not working

(0) ShareShare
ReportReport
Posted on by 2
I am trying to filter a "Create related record" button to only show when a record has not already been created. I am trying to use the "Filter Criteria" on the action button and am using this FetchXML: 
<fetch>
  <entity name="parent-entity">
    <filter type="and">
      <condition attribute="parent-type" operator="eq" value="220970000" />
      <link-entity name="child-entity" from="parent-lookup" to="parent-id" link-type="not any" />
    </filter>
  </entity>
</fetch>
The FetchXML works correctly in Fetch builder (it only returns the record parent GUID if no children records exist) but is not working when put in the "Filter Criteria" for the action button. Is this a limitation of the Filter Criteria not operating on link-entities?
Categories:
  • Suggested answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    Evaluate following optionsL
    If you can modify Dataverse schema: Use a calculated or flag field to avoid link-entity.
    If schema changes are not possible: Use JavaScript in the portal to dynamically control button visibility.
    For complex relationships: Use plugins or workflows to maintain simplified logic.

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

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 45

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 22 Super User 2026 Season 2

Last 30 days Overall leaderboard