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 :
Microsoft Dynamics CRM (Archived)

Dynamically set FetchXml to subgrid on Dynamics 365 8.2.1.0344

(0) ShareShare
ReportReport
Posted on by

Hello,

on my Dynamics 365 online 8.2.1.0344 I'm not able anymore to inject custom FetchXml into subgrid, using

Grid.control.SetParameter('fetchXml', fetchXml);

I know this is unsupported, but it worked in the previous versions of Dynamics.

Does anyone know another working method to inject FetchXml in subgrids?

Thank you,

Simone

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     there is still no client-side "supported" method.. If you wanted this to be supported, you might create a pre-retrievemultiple plugin which would update that query (although, it's not the same as doing it on the client side since pre-retrievemultiple would have to rely on the saved data, whereas javascript can use unsaved data)

  • Community Member Profile Picture
    on at

    Xrm.Page.getControl('Grid Name')._control.get_innerControl()._element.control.SetParameter("fetchxml",fetchxml);

  • Simone Agostini Profile Picture
    on at

    Thank you Alex Shlega for your feedback.

    I need to change the fetch of a subgrid. How can I recognize of which subgrid I'm inspecting the fetch in the plugin? And how do I understand which is the parent record?

  • Simone Agostini Profile Picture
    on at

    Thank you Kishore Dhanekula for your feedback.

    It doesn't work to me, ._control is undefined for my subgrid. Any suggestions?

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans