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.
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.
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156