Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Filtering lookup column options in a table View? (Hiding inactive records)

Posted on by 25

Hi everyone - hoping to get some help on this one,

I have a system View setup for a custom table, which simply shows active records for that table. One of the columns is a lookup to the Contacts table.

For context, our system has a lot of inactive Contact records. That's because we have an external system which merges our duplicates. So if we have 3 Jogn Doe's for example, they'll be merged, and we'll keep 1 Active John Doe, and have 2 Inactive John Does

The issue I'm having is if I try to filter the view by the Contact column, when I hit Filter By and type in a name, e.g. John Doe, I see all 3 records.

Is there a way for me to filter this list to ACTIVE records only?

I believe there is a way to do this for sub-grids, but this is not a sub-grid.


Many thanks,

Tom

  • RE: Filtering lookup column options in a table View? (Hiding inactive records)

    Is there still no other way to manage the records showing up in this 'Filter By' field (e.g. choose what view should be used when filtering on a certain entity/table or by changing a setting to hide inactieve records by default or something)? Is there any chance this could get picked up bij Microsoft to fix this? It is a very nice feature to be able to search in each view, on the column, but only if we can control the available options for our users, in stead of 'every option in the related table'.

    Thanks for your reply...

  • TomEdinburgh Profile Picture
    TomEdinburgh 25 on at
    RE: Filtering lookup column options in a table View? (Hiding inactive records)

    Thanks for that. Disappointing that Dynamics doesn't have this functionality built in, but I think your workarounds should work for our needs

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Filtering lookup column options in a table View? (Hiding inactive records)

    Sorry, I misunderstood your need. I'm afraid it's not configurable; You can use some workarounds.

    First Workaround:

    The first one is to use the filter I suggested on the Quick Find: 

    pastedimage1621247871622v1.png

    Second Workaround:

    The second option is to tag your Inactive Contact's last name. This will make it possible to distinguish which contact is deactivated when the filter is applied with the (Filter By) option.

    For example, you can add "(Inactive)" to "John Doe lasts" name. 

    • For existing data: on demand workflow
    • New merged data: automatic workflow which will be executed when a contact is deactivated.
  • TomEdinburgh Profile Picture
    TomEdinburgh 25 on at
    RE: Filtering lookup column options in a table View? (Hiding inactive records)

    Hi Mehdi - thanks for your suggestion. I just gave it a try but unfortunately, it didn't work for me.

    I added the filter to only show records with Active linked Contact, went to filter by, type in the name, but unfortuantely it still shows me both Active and Inactive John Doe's in the result.

    pastedimage1621245999775v1.png

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Filtering lookup column options in a table View? (Hiding inactive records)

    Hi Tom,

    If I understand your needs, I believe you can configure your Quick Find view filter. Please refer to the images below:

    pastedimage1621242512816v4.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans