Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
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,094 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

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

Featured topics

Product updates

Dynamics 365 release plans