knowledgecenter-breadcrum

Knowledge Center

03 Nov, 2021

How to open lookup control on click of custom button?

Posted on 03 Nov, 2021 by Admin, Posted in Power Apps Dynamics-365 Sales Dynamics 365

How to open lookup control on click of custom button? Blogs

How to open lookup control on click of custom button?

Introduction

In this blog, we are going to see how we can open a lookup control with the click of a custom button.

Example

We are going to add a custom button named “Open Lookup Control” on the Account entity and on click of which it will open contact lookup control.

Step 1: Add a custom button on the account entity using Ribbon Workbench by adding its command and necessary details.

Step 2: Save and Publish the solution. Now you can see the button on the Account form.

Step 3: Add the following code in the script file for the button.

Step 4: Add the script file in Ribbon Workbench and publish the solution.

Result

Comment

This is a Required Field

Loading

Recent Updates

Blogs
12 Jan, 2026

Why Power Apps Component Framework (PCF) Is Becoming a Game-Changer in Power Apps Development

Introduction Power Apps is one of the most widely used platforms for building business applications. As organizations grow, they expect…

READ MORE
Blogs
01 Dec, 2025

Dynamics 365: Why One User Could Edit a Field and Another Couldn’t

Recently, we faced an issue in Dynamics 365 where the field was locked for one user but editable for another. The field…

READ MORE
Blogs
18 Nov, 2025

Building a Power Apps Code-First Application from Scratch: A Step-by-Step Guide

Introduction: Power Apps has long supported rapid app development with low-code/no-code tools. With Code-First Apps, developers can now create fully…

READ MORE