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 assign validate

(0) ShareShare
ReportReport
Posted on by 50

Hi, 

I did customization, that on Dimension page (536) are checkbox, "Customer". 

The goal is to check, before closing the Customer Card, that all Dimension Codes (marked with a checkbox) have been assigned to the Customer.

How to do this? Any code examples, used on other pages? 

I have the same question (0)
  • Tony00001 Profile Picture
    50 on at

    Any ideas?

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,177 Moderator on at

    I can give you the pseudo code for doing this.

    In the on before close page event for the page in question you need to take the dimension set id from the customer table and pass it on to the DimensionManagement Codeunit to have returned a dimension set.

    Compare that dimension set to the dimensions you have marked mandatory in the dimension table.

    Or use the standard functionality.

    Use a template when creating customer.

    Define default dimensions as a part of that template and make the dimensions you want mandatory in the default dimension card.

    Then you will be stopped the first time you try to post anything that does not comply.

    Happy coding!

    Please share your code if you run into any problems then we can help you further.

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

#2
YUN ZHU Profile Picture

YUN ZHU 995 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 596 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans