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

Filter a SubGrid with another lookup entity

(0) ShareShare
ReportReport
Posted on by

Hi,

I have an entity  called "ActivityFields" with N:N relationship with "Accont",

And I have also an entity called "Evaluation"  has a lookup with Account(1:1 relation with Account),

I want to create a subgrid of "Acrivityfields" in "Evaluation" that its Account has relation with.

How can in pass the "accountname" to my "ActivityFields" subgrid in "Evaluation" entity?

I want to force users to select only related ActivityFields with one account.

Thanks alot

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    you can refer below article on how to filter subgrid.

    But however , this is an unsupported method. Think twice before implement it.

    [View:https://community.dynamics.com/crm/b/nishantranaweblog/archive/2017/05/21/filter-subgrid-in-dynamics-365-with-new-form-rendering-or-turbo-form:750:50]

  • Community Member Profile Picture
    on at

    Thank you for your response,but is there any method like plugin or java to set a query(dataset) for subgrids?

  • Verified answer
    Community Member Profile Picture
    on at

    Hi SabaBouzari,

    Most of the solutions out there for this requirement are unsupported because of the getElementById method.

    I'd like to try offer you a solution that doesn't require any coding: https://www.c-sharpcorner.com/article/no-code-solution-for-filtering-subgrid-based-on-the-lookup/

    Let me know if this meets your requirement.

  • Community Member Profile Picture
    on at

    Thank You Barry,

    In that example case,Imagine, you want to pick some members from that quick view form and make a relationship between contact and those members?

  • Community Member Profile Picture
    on at

    Hi SabaBouzari,

    I'm not sure I follow, are you wanting to push the case for the use of the sub-grid?

    The Quick view is simply a reference that can be used as a link to the records it displays (hyperlinked primary field users can click on) and a view into associated records connected to a single lookup GUID. I understand that sub-grids, especially editable grids, offer far more greater visibility into additional columns, increased functionality and quick create options, but if the only solutions you have are unsupported, I only sought to offer a solution that might have assist you.

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 April 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