web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Lookup filter

(0) ShareShare
ReportReport
Posted on by 60

Hello,

I need help on automated filter on lookup.

So here is the case. When I click on any "Customer Account" lookup say in "Sales order form" I can filter it by just typing some text in the field. If I type the customer name it filters the customers and show only those records in lookup which matches the text entered in the lookup field. How this can be done for any custom field?

I have a EDT "XY" and have used it as a primary key in a table "ABC" which has 2 fields "XY" and "Description". I have set the "Table reference" property on EDT to "ABC".

When I use this field in any form it is showing me the lookup of the data in table "ABC". But I want if I enter some value which matches the "Description" field of my table it should filter the record in lookup.

It is filtering the records fine if I  enter text matching to "XY" field but not for "Description".

 

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,657 Super User 2026 Season 1 on at

    following support article should be valid in MSDyn365fo as well.

    blogs.msdn.microsoft.com/.../using-the-new-keyword-search-option-to-create-sales-orders-in-dynamics-ax-2012-r3

    and a video

    www.youtube.com/watch;feature=youtu.be

  • AX Ankit Profile Picture
    60 on at

    Sohaib Ahmad - Thanks for your response but I believe I am looking for something different. I am attaching an image for your reference.

    In the below image, I entered value "High" and the dropdown was filtered with only those items for which "Item Name" matches to the text.

    2766.Item.png

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    The fields which you refer to are using x++ lookup methods instead of normal automatic lookups that are based on table relation.

    On the calling form, you will find method called lookup either on the field control, or on the data source field. That method usually calls the actual lookup method which you will find on the corresponding table.

    When you examine those methods, you should be able to create similar lookups in your own fields. You can also google for x++ custom lookups.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans