Skip to main content

Notifications

Customer Service forum

Look Up Filters - Up a Level

Posted on by 355

Hi

Is there an OOB way, if not another way, that a filter can be applied up a level. I have parent of client against child account and in my form when a client is selected, this filters to accounts of that client, which as we know is standard and easy to model.  My question is can I have this behaviour reverse too so that if a user chooses an account first then when it comes to the client that only that client is there?

Thanks

Categories:
  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Look Up Filters - Up a Level

    Hi partner,

    Unfortunately, there is no OOB way to do this.

    I recommend you to add JS code at the child lookup field onchange event.

    Here is the code logic:

    1.Get the child record id you've chosen.

    2.Use the child id to get its parent record id&name by webapi.

    3.Set the parent id&name to the parent field.

    If my understanding is not correct, please share more information or screen shot so that we could help you better.

    Hope it helps.

    Best Regards,

    Leo

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,782 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,067 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans