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 2,914
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?
  • Samantha73 Profile Picture
    2,914 on at
    Hide selecting Contact for potential customer when creating quote
    Tried field properties but no option to select views
  • Verified answer
    Muhammad Shahzad Shafique Profile Picture
    379 Most Valuable Professional on at
    Hide selecting Contact for potential customer when creating quote
    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

     

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans