You are on page 1of 8

CREATE AN

X++ LOOKUP
IN 3 SIMPLE
STEPS
WHAT IS A
LOOKUP?
Lookups are a standard way of presenting the
user with possible values for a particular record.
It makes data entry in D365:

Errorless
Quick and Easy
Configurable
Cool!
Let's build one
Step#1:
Create a form control
On the form you wish to add the lookup, add a new
string type form control.
Step#2:
Lookup method
Expand the string control, right click on the
methods & select Override.
Select the Lookup method from the list to open
the code for the lookup.
Step#3:
Add the code
Use the code below and replace YourTableName
where applicable. The code has been explained
below for a better understanding of what does
what.
All done!
Save and build your project. Go to the form and
click on the dropdown button of your custom
string control to access the lookup.
Hi there, I'm Taha

Follow me for more daily posts.

You might also like