No Code Solution For Filtering Subgrid Based On The Lookup

There is a common requirement to filter subgrids based on the lookup field, but there is no easy way to implement it without writing code. In this post, I am going to discuss a quick workaround to implement this requirement. Let’s see how we can implement this.


We want to show the marketing list for accounts in contact form based on the account lookup.


We can implement this requirement with the help of the quick view form using the following steps.

  1. Open default solutions by Navigating to Settings->Customizations->Customize the Systems or create your custom solution and add Account and Contact entity to your custom solution.

  2. Navigate to Forms under Account entity.

  3. Create a New Quick View form and change form name “AccountMarketingListQuickViewForm” using Form Property button on the top.

    Dynamics CRM

  4. Click on Insert and add a subgrid and set the following options.

    Dynamics CRM

  5. Save and Publish your changes.

  6. Open Contact form and insert a Quick View form by navigating to Insert->Quick View Form, we need to set the following properties.

    Dynamics CRM

  7. Save and Publish your changes.

Now, let’s say we have one marketing list, Current Resellers, who have a  “Hewlett Packard” account.

Dynamics CRM
Now, open the contact with  Hewlett Packard in the company name lookup and you will be able to see a related marketing list like below.

Dynamics CRM 

I hope it will help someone!!

Similar Articles
We are expert in Microsoft Power Platform.