knowledgecenter-breadcrum

Knowledge Center

27 Apr, 2022

Quick Tip – Restrict Customer Lookup to show only account or contact

Posted on 27 Apr, 2022 by Admin, Posted in Dynamics 365 Dataverse Power Platform Dynamics-365 Sales

Quick Tip – Restrict Customer Lookup to show only account or contact Blogs

Quick Tip – Restrict Customer Lookup to show only account or contact

In this blog we will see how we can restrict the customer lookup type field to show only account or contact without using “addPreSearch” method.

To restrict the customer lookup, we can use below method.

For more info:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/setentitytypes

Example.

On Case entity, we have added below code on form load to restrict the customer lookup to show only account.

Hope this helps!!

Comment

This is a Required Field

Loading

Recent Updates

Blogs
31 Mar, 2026

Debugging Power Pages Server Logic Using Visual Studio Code

Power Pages Server Logic allows developers to execute secure backend JavaScript directly within Power Pages. It is commonly used for…

READ MORE
Blogs
31 Mar, 2026

Create and Deploy a Single Page Application (SPA) in Power Pages

In this blog, we’ll build and deploy a Single Page Application (SPA) using React + Vite and host it on…

READ MORE
BuildAndDeployPCF_Thumbnail.png
Blogs
25 Mar, 2026

Build And Deploy Your First Dataset PCF Control In Dynamics 365

Introduction In Dynamics 365, subgrids are commonly used to display related records, such as Opportunities under an Account. While out-of-the-box…

READ MORE