Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

how to get values in look up based on another look up

Posted on by 814

I have entity, country, state and city.

On basis of country i want state to get filter and based on state city look up get filter. 

What is best way to achieve it. 

All i could think of presearch on look up filter. Is there any no code structure or any other way

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to get values in look up based on another look up

    Hi Ravi,

    Filtering lookups for 1:N and N:N relationships can be achieved without custom code by updating Related Records Filtering under Field Properties for the desired lookup.

    How to Filter Lookups Without Custom Code in Dynamics 365 Customer Engagement (arbelatech.com) 

    Or you can use addCustomFilter() function to Filter the Lookup:

    addCustomFilter (Client API reference) in model-driven apps - Power Apps | Microsoft Docs

    Solved: Filter lookup field using addCustomFilter control ... - Power Platform Community (microsoft.com)

    Dynamics 365 - Filter lookup with FetchXML (and how to deal with invalid XML format) - Dyn365blog

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans