Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Dynamics 365 Portal - Hide Contacts lookup view

(0) ShareShare
ReportReport
Posted on by 416

Hello everyone. 

I have the Customer field (logic name - customerid) which is rendering 2 lookups on the portal:

pastedimage1620892869934v2.png

I want the portal user to only see the Account lookup view when submitting a case. 

Any suggestions please?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Dynamics 365 Portal - Hide Contacts lookup view

    Hi fran2105,

    If you want to disable contact lookup view of customer field in the form, which can be easily to achieved through js.

     

    function defaultcustomer() {
        Xrm.Page.getControl("customerid").addPreSearch(addFilter);
    }
    function addFilter() {
        var customerAccountFilter = "";
        Xrm.Page.getControl("customerid").addCustomFilter(customerAccountFilter, "contact");
    }

    Contact label in customer field is greyed out.

    pastedimage1620972153806v1.png

    However, it’s hard to hide contact lookup view for customer field in the portal, maybe you can create a new 1:N relationship between Account and one entity you need, then add the account lookup field to the form that has been used in portal.

    pastedimage1620972245758v3.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans