Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

How to change the default lookup view on the Connect To Name column for Connections

Posted on by 279

I need our users to be able to ONLY choose either contacts or accounts when creating a connection. Currently, the lookup view in the Name column of the Connect To section when creating a connection searches ALL contacts, accounts, users and activity types.

Digging deeper, that specific lookup column is set to lookup to the Knowledge Article table of all things and I can't find any way to change it. Going into the form editor it tells me to switch to Classic to access the control, but switching to classic doesn't give me any more options to edit it.

How can I change the settings for this column?

  • Suggested answer
    Lucas H Profile Picture
    Lucas H 279 on at
    RE: How to change the default lookup view on the Connect To Name column for Connections

    Inogic Thank you, this worked great!!!

    Here's the simple code I used:

    function setConnectionLookupOnLoad(executionContext) {
        
        var formContext = executionContext.getFormContext();
    
        formContext.getControl("record2id").setEntityTypes(["account", "contact"]);
        formContext.getControl("record1id").setEntityTypes(["account", "contact"]);
    }

  • Inogic Profile Picture
    Inogic 24,031 on at
    RE: How to change the default lookup view on the Connect To Name column for Connections

    Hi,

     

    It is not possible to filter the default lookup entities on the Connect To Name column of Connections entity using OOB form customizations.

    However, you can use JavaScript on load of Connection entity form to filter lookup field to show only account and contact records as mentioned in below blog:

     

    https://www.inogic.com/blog/2019/10/tip-to-filter-customer-field-depending-on-type-of-customer-in-dynamics-365-uci/

     

    Thanks!

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans