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 :
Power Platform Community / Forums / Power Apps / Need to filter a looku...
Power Apps
Answered

Need to filter a lookup in a quick create form launched from a subgrid based upon a lookup value in the main form (model-driven)

(0) ShareShare
ReportReport
Posted on by 66

So basic data models is:

 

Parent Table 1 - Fee Model (1-Many)

> Child Table2 - Fee Model Options (related on fee model)

 

Parent Table 3 - Fee Proposal (lookup to select a fee model from table 1. One Fee Model can be used in many Fee Proposals)

> Child Table 4 - One Fee Proposal can have many Fee Proposal Options, dropdown of table 2* options. One Fee Model Option can be used in Many Fee Proposal Option records.

 

Table 3 (Fee Proposals) has a main form with Table 4 (Fee Proposal Options) as subgrid. When a new option is added it launches a Quick Create Form.

 

*The challenge - the lookup field in the the QCF needs to be restrict options to Table2 FM options where Fee Model is the same as Parent (Table 3)

 

I've tried a number of different things but each hit a dead end. I believe I need to either:

  • Add Fee Model to Table 4 and somehow default the value to the Fee Model in the parent Table 3 (but not sure if this will allow the filter to work on a new record. OR
  • Somehow pass the Fee Model ID and use it filter the Option look up in the QCF for Table 4

Either way I'm thinking this is probably a Javascript job, but new to this so any pointers welcome. Alternatively if I've missed any no code/low code solutions then please let me know.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Linn Zaw Win Profile Picture
    2,996 on at

    You're pretty close to the solution.

    1. As you mentioned, add the Fee Model lookup to the Fee Proposal Options (Table 4), and add it to the Quick Create Form as a read-only field.
    2. Then, you can default the value to the Fee Model in the parent Fee Proposal (Table 3) by adding the mapping of the (Fee Proposal Options - Fee Proposal) relationship as shown in the screenshot below. This can only be done in the Classic Solution Explorer at the moment.
    3. The rest is just filtering the Field Model Options lookup on the Quick Create form with "Filter by related rows" option as mentioned in this blog post.

     

    LinnZawWin_0-1685320436210.png

     

  • Treebys Profile Picture
    66 on at

    Sorted! Many Thanks

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard