web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by 283

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?

I have the same question (0)
  • Inogic Profile Picture
    651 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!

  • Suggested answer
    Lucas H Profile Picture
    283 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"]);
    }

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 120 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 119

#3
Erin Lubben Profile Picture

Erin Lubben 73

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans