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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Search Item Looup By Item Name

(0) ShareShare
ReportReport
Posted on by

Hi All,

In standard the item lookup , filter the records based on item id.

But i need to change it.

When the user search by Product Name it should be filtered in the item lookup.

pastedimage1624520855673v1.png

pastedimage1624520929611v2.png

How to achieve this.

Thanks.

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi john,

    Do you need to search both the id and the name in the lookup?

    Or If just filter based on name, you can create lookup in D365FO using X++ following the link:

    community.dynamics.com/.../how-to-create-lookup-in-d365fo-using-x-2133197305

    regards

  • Community Member Profile Picture
    on at

    Hi Judy,

    Thanks for the reply.

    I need to filter the records based on product name in the ItemLookup.

    User enter product name the lookup should be filtered.

  • huijij Profile Picture
    19,811 on at

    Hi john,

    You field is item id and not Item Name, if you need Item Name, you can also change the item id to Item Name field to display.

    Best regards

  • Community Member Profile Picture
    on at

    Hi Judy,

    The grid should contain the item id only.

    Itemid field has this lookup control.

    User can't remember all itemid.

    So its better if the user enter product name in the grid, and the itemid lookup filter records based on the value entered by the user and return itemid in the grid.

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    You can create a lookup and use the value as a range. (SysQuery::ValueLike)

  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi john,

    You can check the lookup method of the itemid field in your datasource of the form to modify lookup filter like this in your method:

    queryBuildDataSourceInventTable.addRange(fieldNum(InventTable, ItemName)).value(strFmt(#ItemName,_filterStr));

    Just refer to the method lookupItemsFromSourceId()  of class named Catalog:

    3542._5563B783_.PNG

    regards

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

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
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans