Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Account contacts filtered lookup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a filtered lookup for contacts that partly works and I would like to know how to fix it. If a contact has been added to an account from within the account page the filtered lookup will work correctly. However if a contact has been created and then after the fact an account (or company) has been added then it will not show up in the filtered results. 

I am able to go into the look up more records portion and uncheck "filter by related" I can then find the person I'm looking for. 

When on the account page I am able to see the contact regardless of which way they have been added, but the filtered lookup only works if they have been added from the account page. Aside from the obvious "only add them from the account page" suggestion, what can I do to fix this?

*This post is locked for comments

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Account contacts filtered lookup

    Hi Adam,

    Please check if there are multiple Account lookup fields in Contact entity.  When manually populating the Account, you may be using a different field than the one used in Filtered Lookup.

  • Brian Poff Profile Picture
    Brian Poff on at
    RE: Account contacts filtered lookup

    Can you elaborate on how your filter is working? What field(s) is it filtering on?

    My first guess is that you aren't populating the same field/relationship on the account and contact form. In other words it sounds like you are filling the parentcustomerid field if you link them on one form and something else, such as primarycontactid on the other. This would make your filter only work in one of these cases.

    If you are using the Primary Contact field on the Account form that is setting the field "primarycontactid" on the account record. If you are using Account Name on the Contact form that is setting the field "parentcustomerid" on the contact record.

    There are other permutations but it's almost certainly this or something very similar. Either way whatever field you are filtering on in your filtered lookup is only being populated when you add the contact via the account form. If you can figure out what field you are actually populating when you link them from the contact form you can also add that field with an OR clause to your filtered lookup.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans