cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ghdunn
Post Patron
Post Patron

Cascading filters to guide foreign key Selection in Model Driven App

Continuing to develop Model Driven Apps...

 

I have three entities:  Account, Contact and a custom entity of Project.  Project includes two foreign key fields of Account Name and Contact name.  The contact should only come from the chosen Account.

 

Can I place a business rule on the Project form that filters the available Contact names to only those which are children of the  account name already chosen?

 

 

Annotation 2020-02-05 200756.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
HSheild
Super User
Super User

Hi

Take a look at the Related Record Filtering properties of the Contact lookup field. I couldn’t find the official Microsoft documentation but this article will help https://www.arbelatech.com/insights/blog/how-to-filter-lookups-without-custom-code-in-dynamics-365-c...

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @ghdunn ,

Based on the needs that you mentioned, I think the "Related Records Filtering" option for the Contact LookUp fields field in your Entity form could achieve your needs.

 

On your side, please consider edit your Entity form in classic mode. Then double-click the "Sponsor" field to edit properties. Then configure the "Related Records Filtering" option as below:

1.JPG

 

Please check and see if the following blog would help in your scenario:

https://carldesouza.com/filtering-lookup-fields-in-dynamics-365/

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
HSheild
Super User
Super User

Hi

Take a look at the Related Record Filtering properties of the Contact lookup field. I couldn’t find the official Microsoft documentation but this article will help https://www.arbelatech.com/insights/blog/how-to-filter-lookups-without-custom-code-in-dynamics-365-c...

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @ghdunn ,

Based on the needs that you mentioned, I think the "Related Records Filtering" option for the Contact LookUp fields field in your Entity form could achieve your needs.

 

On your side, please consider edit your Entity form in classic mode. Then double-click the "Sponsor" field to edit properties. Then configure the "Related Records Filtering" option as below:

1.JPG

 

Please check and see if the following blog would help in your scenario:

https://carldesouza.com/filtering-lookup-fields-in-dynamics-365/

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,260)