Hi Business Central experts!
Can users set or edit Unit of Measure in Item Category page?
Can Business Central Item Card change Base Unit of Measure based on Item Category dynamically?
Thank you.
Hi Business Central experts!
Can users set or edit Unit of Measure in Item Category page?
Can Business Central Item Card change Base Unit of Measure based on Item Category dynamically?
Thank you.
Two additional things:
1. You cannot change unit of measure once transactions have been posted
2. Since you cannot change, this is more of a setup issue for new items. You should look into using item templates.
Hi, Standard can't do it, but you can do a small customization.
For example,
Source Code:
tableextension 50104 ItemCategoryExt extends "Item Category" { fields { field(50100; "ZY Base Unit of Measure"; Code[10]) { Caption = 'Base Unit of Measure'; TableRelation = "Unit of Measure"; DataClassification = CustomerContent; } } } pageextension 50104 MyExtension extends "Item Category Card" { layout { addafter("Parent Category") { field("Base Unit of Measure"; Rec."ZY Base Unit of Measure") { ApplicationArea = All; } } } } tableextension 50105 ItemExt extends Item { fields { modify("Item Category Code") { trigger OnAfterValidate() var ItemCategory: Record "Item Category"; begin if ItemCategory.Get("Item Category Code") then if ItemCategory."ZY Base Unit of Measure" <> '' then Validate("Base Unit of Measure", ItemCategory."ZY Base Unit of Measure"); end; } } }
Hope this helps.
Thanks.
ZHU
Not as standard. The unit of measure field you are looking at is the attribute unit of measure so wouldn’t be an ideal field to do this with.
Reason? The attribute table allows you to have a many to one relationship to the item table so which attribute uom would you use?
Attributes don’t need UOMs but a use case is where you record multiple attributes for a single item such as length, widths, weight, volume etc. each of these may have a different uom and none of them are necessarily the correct default uom for the item.
In most cases, a better way to achieve what you need is with templates. Assign a default category and uom in the template. Although I have found using power automate and forms allows structured item creation with more flexibility and less maintenance than templates.
André Arnaud de Cal...
294,281
Super User 2025 Season 1
Martin Dráb
233,019
Most Valuable Professional
nmaenpaa
101,158
Moderator