Notifications
Announcements
No record found.
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
Hi,
The Type field in Item Table is Enum so you need to create extension for that enum.
Item Type Enum is as below:
Now you need to extend this enum like below:
and then after publishing this you will see new options in Item Type.
You can add as many values as you want just like I added 3 above.
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
@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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,092
YUN ZHU 663 Super User 2025 Season 2
Sumit Singh 515