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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Business Central TableRelation to "Product Group"."Item Category Code" after its removal

(4) ShareShare
ReportReport
Posted on by 1,981

Hi everyone,

During a migration from NAV to Microsoft Dynamics 365 Business Central, I encountered a field defined as follows:

field(2; Description; Code[30])
{
    TableRelation = "Product Group"."Item Category Code";
}

As the Product Group table has been removed in Business Central (v15+), I’m unsure how to correctly replace this TableRelation.

From my understanding, this relation was effectively allowing selection of Item Category Codes, but only those that existed in the Product Group table.

 Would replacing it with the following be correct?

TableRelation = "Item Category".Code;

Or is there a better approach to preserve the original filtering behavior?

I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    17,608 Super User 2026 Season 1 on at
    Hello,
    Yes, TableRelation = "Item Category".Code; is usually the correct replacement, because Microsoft replaced the old Product Group concept with the newer Item Category structure, so the closest BC equivalent is the Item Category table; however, it is not 100% the same behavior, because the old relation was indirectly validating against records in Product Group using "Item Category Code", while the new one validates directly against all item categories. If you must preserve the old behavior exactly, you need to migrate the old product-group logic into a custom table/field or add a filtering rule that matches how those old product groups were converted; otherwise, for normal NAV-to-BC modernization, relate directly to "Item Category".Code and clean/migrate the old values into valid item categories.
    Regards,
    Oussama Sabbouh

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,050 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,441 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,175 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans