web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Does custom fetchxml work in subgrids in D365?

(0) ShareShare
ReportReport
Posted on by 5

Hello,

I am trying to implement a subgrid on a form that displays related records but only shows the distinct rows. I am using FetchXML Builder in XrmToolbox, and have a very simple fetchxml:

<fetch distinct="true">
<entity name="ptl_sponsorship">
<attribute name="ptl_sponsor" />
<order attribute="ptl_sponsor" descending="false" />
</entity>
</fetch>

This works properly i.e.displays only the distinct rows within FetchXML Builder but incorrectly shows ALL rows in the subgrid.

Does custom fetchxml work in subgrids in D365?

Thanks!

I have the same question (0)
  • Suggested answer
    Tamilarasu Arunachalam Profile Picture
    593 on at

    Hi rgbeach,

         Yes it does

    But this way is not recommended by microsoft

    Below are the references

    https://carldesouza.com/filtering-subgrids-in-dynamics-365-power-apps-with-setfilterxml/

    https://alfredokijr.com/2021/05/09/filter-data-in-a-subgrid-dynamically/

    https://crm365blog.wordpress.com/2022/01/06/filter-subgrid-in-dynamics-365-crm-version-9-2/

    If this answer helps you, like and verify my answer

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    Hello,

    You can vote for a supported way : ideas.powerapps.com/.../e6c9dcd8-99cd-4af1-8530-f2c2d32cd49c

    The link contains also a compilation of solution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 175

#2
ManoVerse Profile Picture

ManoVerse 142 Super User 2026 Season 1

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 59 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans