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 to EcoResProductCategory

(0) ShareShare
ReportReport
Posted on by 185

Hello,

I have extended InventTable and add a new Int64 field. I want this to lookup to EcoResProductCategory and to return the category name selected.

Can some one please advise on how I can achieve this.

Thanks

KR Norm

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi Norman Elliott,

    Create foreign key  relation between InventTable  and EcoResProductCategory , you can find blogs with step by step instructions, like community.dynamics.com/.../table-keys-replacement-key-in-ax-2012 or refer to documentation msdn.microsoft.com/.../hh812105.aspx

    They are about 2012 but nothing has changed there.

  • Norman Elliott - Malta Profile Picture
    185 on at

    Hi Ievgen,

    on the InventTable extension it is not possible to create an Alternate keys for EcoResProductCategory because alternate keys have to be unique.

    I have added foreign key relation and this does provide a lookup but it does not return the category name.

    Could you please advise further?

    Thanks

    KR Norm

  • Mea_ Profile Picture
    60,286 on at

    I think is a wrong table. If you need a name you need to use EcoResCategory, because it has a name and it is Alternate key there.

    EcoResProductCategory  links product to category and it does not make any sense for me to store rec id of this table on item.

  • Verified answer
    Norman Elliott - Malta Profile Picture
    185 on at

    That worked - thanks Ievgen.

    KR Norm

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans