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
18 Jul, 2024

How to use Fiddler to debug your PCF while doing development.

Have you ever felt like you're spending too much time debugging your PCF (PowerApps Component Framework) during development, only to…

READ MORE
Blogs
16 Jul, 2024

How to use Solutions with Power Pages

What is Solution in power Pages? A solution is a container for components such as Website Configuration and Dataverse Components.…

READ MORE
Blogs
15 Jul, 2024

Create a Dataverse table with a SharePoint List

In today’s business world, Organization uses SharePoint lists for document management, and data storage. Let's assume a scenario where an organization…

READ MORE