Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Filtering Lookup field Results

(1) ShareShare
ReportReport
Posted on by 52

Hello everyone,

I’ve recently created a custom entity called Samples that is integrated with the Opportunity entity and has relationships with both the Opportunity and Opportunity Products.

Here's the scenario:

  • The Samples entity is created within an Opportunity.
  • On the Sample form, there’s a subgrid that allows users to add products (Opportunity Product) related to the Sample.
  • When a user clicks on "Add Sample," a quick create form appears, which includes a lookup field. This lookup field is intended to link the Opportunity Products to the Sample.

The challenge:
I want to filter the Opportunity Products lookup so that it only shows the products related to the specific Opportunity associated with the Sample. In other words, when users are adding products to the Sample, they should only see the Opportunity Products that belong to the current Opportunity, without displaying all Opportunity Products.

Has anyone implemented something similar or can guide me on how to apply this filter to ensure that only the relevant Opportunity Products are shown in the lookup?

Thanks in advance for your insights!

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans