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 / Split fetchxml result ...
Power Pages
Answered

Split fetchxml result into liquid by linked-entity attribute

(0) ShareShare
ReportReport
Posted on by 3

Hi,

 

Anyone know if there is a way to split fetchxml result into liquid variable by linked-entity attribute? 

Something like this:

 

{% fetchxml query %}
<fetch version="1.0" output-format="xml-platform">
 <entity name="account">
 <attribute name="name" />
 <link-entity name="contact" from="accountid" to="accountid" alias="con">
 <attribute name="firstname" />
 </link-entity>
 </entity>
</fetch>
{% endfetchxml %}

{% assign all_joe = query.results.entities | where: 'con.firstname', 'joe' %}

 

Categories:
  • Verified answer
    OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @aljor ,

    Unfortunately, you will need to use for loop with if inside of it to perform filtering on the linked entities. Neither where or select will work for linked entities fields. My assumption is that this is because of the dot notion name of the field + where doesn't work with a nested properties (at least in liquid based on ruby).

  • NikitaP Profile Picture
    15 on at

    I also suggest doing so up in the query, but if you do need the full result set...I am not sure how big your Account table is...and the Entity Permission at play to limit it.

     

    Use iteration tags for a portal - Power Apps | Microsoft Docs

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 Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 35

#2
M Bilal Khan Profile Picture

M Bilal Khan 33

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard