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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Add new lookup field to ItemId dropdown of Sales order lines

(0) ShareShare
ReportReport
Posted on by 104

I try to add a new field(from InventTable) in the ItemId lookup of Sales lines.

Since I didn't find an easy solution through FieldGroups, I tried to extend the "InventItemLookupSimple" class and use the "addLookupField" method but it seems that it's private so it cannot be used in extensions. I also tried to use Reflection and DictClass to bypass the scope of method but I have read that these practices are not recommended.

Is there any simpler solution?

Thanks in advance.

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,829 Moderator on at

    Hi Vasileios Papoglou,

    To make it simple you can just write the lookup event handler for ItemId field. In the lookup event handler method you can add your required fields to be displayed in the lookup.

    Refer to the below blog for writing lookup event handler.

    https://dynamics365musings.com/override-an-existing-lookup-method-event-handler/

    Thanks,

    Girish S.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 791 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 333 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans