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

Unit of Measure in Item Category

(0) ShareShare
ReportReport
Posted on by 245

Hi Business Central experts!

Can users set or edit Unit of Measure in Item Category page?

pastedimage1650758280023v1.png

Can Business Central Item Card change Base Unit of Measure based on Item Category dynamically?

pastedimage1650758571526v2.png

Thank you.

I have the same question (0)
  • Verified answer
    Guy McKenzie Profile Picture
    1,340 on at

    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.

  • Suggested answer
    YUN ZHU Profile Picture
    100,998 Super User 2026 Season 1 on at

    Hi, Standard can't do it, but you can do a small customization.

    pastedimage1650845928029v1.png

    For example,

    pastedimage1650846454018v3.png

    pastedimage1650846426524v2.png

    pastedimage1650846463240v4.png

    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

  • Suggested answer
    Dallefeld Profile Picture
    233 User Group Leader on at

    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.

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 April 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,002 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,255 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,217

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans