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 :
Small and medium business | Business Central, N...
Suggested Answer

Extend Type field in Item card

(0) ShareShare
ReportReport
Posted on by 150

Hello Experts,

I want to add options in "Type"  field in item card in Business central but seems it doesn't work.

tableextension 50011 "Item_Ext" extends "Item"

{

   fields

   {

       modify("Type")

       {

           OptionCaption = ', Inventory, Non-inventory, Service, Manufacture, Finish Good';

       }

   }

}

But its not working. Any suggestion swill be highly appriciated.

Thanks in advance.

Nia

I have the same question (0)
  • Suggested answer
    Bilal Haider Profile Picture
    414 on at

    Hi,

    The Type field in Item Table is Enum so you need to create extension for that enum.

    Item Type Enum is as below:

    Enum-1.PNG

    Now you need to extend this enum like below:

    enum-2.PNG

    and then after publishing this you will see new options in Item Type.

  • Suggested answer
    Bilal Haider Profile Picture
    414 on at

    You can add as many values as you want just like I added 3 above.

  • Samantha73 Profile Picture
    3,255 on at

    I wouldn't extend basic ENUMs in BC unless you know have checked where this is used in standard APP. Still you don't know how this will affect future upgrades.  Consider for example, if MS has IF ELSE code block using enum values like IF Inventory then A, IF Non-Inventory then B, IF service then C , ELSE EXIT , Now what happen to your new ENUM value?  Just because yu can extend doesn't mean you should

  • Suggested answer
    Bilal Haider Profile Picture
    414 on at

    @Samantha73 The code that I have shared in picture 1 is actually from Microsoft Base App. 

    Microsoft has made this Enum extensible. 

    But yes, there are dangers of extending Enum if you are not handling the newly added values of Enums in code properly.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    Hi Nia,

    The "Type" is an enum called "Item Type", so you need to create an enum extension in order to add more option to it.

    However, I would suggest you not to extend it because the Type is linked to many places. If you are not careful, you can break the core functionality.

    In my opinion, adding new field is a better and safer option for it.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans