web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer Service forum

Look Up Filters - Up a Level

(0) ShareShare
ReportReport
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:
I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans