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...
Suggested Answer

Dimension values for additional table

(0) ShareShare
ReportReport
Posted on by 159

If I've done this:

 

[EventSubscriber(ObjectType::Codeunit, Codeunit::DimensionManagement, 'OnAfterSetupObjectNoList', '', false,false)]

    local procedure AddShipToAddress(var TempAllObjWithCaption: Record AllObjWithCaption)

    var

    DimMgt: Codeunit DimensionManagement;

    begin

        DimMgt.InsertObject(TempAllObjWithCaption,Database::"Ship-to Address");

    end; 

How do I get it to pickup the assigned dimension values if I change the "Ship-to Address" on an order. Already taken care of the page actions to assign default dimension values.

  • IB-29041624-0 Profile Picture
    1,191 Moderator on at

    I think you need to find a suitable trigger on the saleshead table in order to achieve this.  You have to do something in OnAfterValidate trigger for the shiip to on the salesheader.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Table in question has a 2 field pk. The answer was very long winded with a custom table to store dim values, custom dim mgt. codeunit and a lot of event subscribers. A colleague had produced a solution for dimension values on dimension values

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 728 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 545 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 328 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans