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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Hide selecting Contact for potential customer when creating quote

(1) ShareShare
ReportReport
Posted on by 3,247
Hi All
When creating a quote account and contacts appear for selection. Is it possible to hide the contacts so only accounts can be selected as potential customer?
I have the same question (0)
  • Verified answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
    function filterLookup(executionContext) {
        var formContext = executionContext.getFormContext();
        var customerAttr = formContext.getAttribute("customerid");
        customerAttr.controls.get(0).addPreSearch(function() {
            var fetchXml = `
            <filter>
                <condition attribute="parentcustomerid" operator="null" />
            </filter>`;
            customerAttr.controls.get(0).addCustomFilter(fetchXml);
        });
    }
     
     

    Option 2: Field Security

     

    Go to Settings > Customizations > Customize the System

     
     

    Navigate to Entities > Quote > Fields

     
     

    Find the Customer field and edit its properties

     
     

    Under Controls, configure the lookup to only show accounts

     
  • Samantha73 Profile Picture
    3,247 on at
    Tried field properties but no option to select views

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans