Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Add new lookup field to ItemId dropdown of Sales order lines

(0) ShareShare
ReportReport
Posted on by 36

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.

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Add new lookup field to ItemId dropdown of Sales order lines

    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

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans