Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamically set FetchXml to subgrid on Dynamics 365 8.2.1.0344

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

  • RE: Dynamically set FetchXml to subgrid on Dynamics 365 8.2.1.0344

    Thank you Kishore Dhanekula for your feedback.

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

  • RE: Dynamically set FetchXml to subgrid on Dynamics 365 8.2.1.0344

    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?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamically set FetchXml to subgrid on Dynamics 365 8.2.1.0344

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

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Dynamically set FetchXml to subgrid on Dynamics 365 8.2.1.0344

    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)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans