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 :
Customer experience | Sales, Customer Insights,...
Answered

Filter "Add Existing" items in Many-Many Subgrid

(0) ShareShare
ReportReport
Posted on by 54

Hi,

I implemented a subgrid with items from a many to many relationship between two tables (for example Account -> Sales Area). When the user clicks the "Add Existing Sales Area", all Sales Areas are shown. Where I only want the Sales Areas of the previously chosen Country be shown. Is that somehow possible? Maybe with a existing PCF Component?

As a workaround I give user the ability to search for the country in the Sales Areas. However, they still can choose a Sales Area that doesn't match the selected Country. And it is less user friendly in our case...

Thanks for all your help!

Regards,
Elowy.

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    you can use some JS code to implement this scenario. Please refer to the following blogs:

    www.itaintboring.com/.../

    blog.magnetismsolutions.com/.../filter-n-n-add-existing-lookup-dynamics-365-v9-supported-code

  • Elowy GrootCRM Profile Picture
    54 on at

    Thanks, Mehdi. That is what I was looking for!

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

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 125 Super User 2026 Season 2

#2
ParthPatel249 Profile Picture

ParthPatel249 84

#3
Syed Aqib Raza Profile Picture

Syed Aqib Raza 80

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans