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)

Can a 3-hop referential lookup be done in CRM 2016 / Dynamics 365?

(0) ShareShare
ReportReport
Posted on by

We've used filtered lookups for some time with good results but I'd like to take it a step further, if the technology allows.  I think that this may require some JS (preFilterLookup?) but am not certain.  Here is the scenario:

We have 4 entities involved:

  1. Contacts - parented by....
  2. Accounts - child relationship to....
  3. Hot Sheets - child relationship to...
  4. Printers - which has an N:1 referential relationship to Contacts

Today we can do a lookup from Printers to any Contact.  Great - other than the fact that we get >5,000 names.  What we would like to do is filter that list down to only the Contacts that exist only in the Account that is common to the Hot Sheet...which the Printer is parented by.

Is this possible?

Does this make sense?

Any input would be appreciated.  I'm thinking it's possible but at this point the best we've come up with is presenting only Contacts in Accounts that have a Hot Sheet.  I haven't been able to figure out how to take that next step to filter down to the Printers that are parented by the Hot Sheets.  Related Records filtering does not seem to be the solution since there is not a 1:N relationship from Contacts to Printers and we don't think we'd want that since we want to restrict a 1:1 user to printer limit.

Thank you.

1_2D00_11_2D00_2017-9_2D00_58_2D00_58-AM.jpg

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    You can do this by using Javascript to add a custom filter to the lookup. The fetchxml would need to link to Account, then Hot Sheet and then Printer to limit the records.

    See missdynamicscrm.blogspot.co.uk/.../crm-2013-using-addcustomfilter-to-get-filtered-lookup-field-based-on-linked-entity.html

    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