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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Populate lookup based on selection of another lookup

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to populate a lookup based on a another lookup selection.

- The main lookup references to the entity [ team ]
- The second lookup references to a custom entity which contains 8 records. One of attributes contains the [ team ] attribute

When team lookup is populated I want to populate the second lookup with record containing the same team.

Not sure if its best to do this in a plugin using a custom workflow activity or J-Script.

Please provide useful references.

Many Thanks,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    You could use Related record filtering which which filter the options of your second lookup and will give you the one related to the select team.

    www.magnetismsolutions.com/.../how-to-filter-lookups-by-related-records-in-dynamics-365

    Do not that this won't auto populate the value so user has to select it. If you want to auto populate it with the value then, yes, you need to write javascript and use Web APi to retrieve the details and set it.

    You can refer this: community.dynamics.com/.../get-lookup-value-from-other-entity-and-set-it-on-the-form-using-web-api-in-microsoft-dynamics-crm

    Hope this helps.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    You don't need to write any code to do this functionality.  You can check below references -

    www.powerobjects.com/.../how-to-use-dependent-lookups-for-dynamics-crm-201320152016

    m.youtube.com/watch

    Hope this helps.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans