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

Making a field that is in the base application mandatory.

(0) ShareShare
ReportReport
Posted on by
I am trying to make certain fields mandatory in the Sales Header. These fields are in the base application so I cant just add the field and make it mandatory. I also researched and found that you cannot modify the field in a extension to make mandatory. For example, I can't make a table or page extension and modify a field to NotBlank = true. Also at the same time I cannot find some of the fields when I open the Page Inspection, like Customer PO no., My question is how do I, in the code, make a field mandatory that Microsoft has created? I did create this in a table extension, but I am not sure if it correct.
 
tableextension 90000 /BLP Sales Header Extension/ extends /Sales Header/
{
    fields
    {
        // Add changes to table fields here
        modify(/Requested Delivery Date/)
        {
   
            trigger OnBeforeValidate()
            begin
                if /Requested Delivery Date/ = 0D then
                    Error('Requested Delivery Date is mandatory.')
            end;
        }
 
        modify(/Due Date/)
        {
 
            trigger  OnBeforeValidate()
            begin
                if /Due Date/ = 0D THEN
                Error('Due Date is mandatory.')
            end;
        }
 
       
 
    }
  • Suggested answer
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at
    The best option is to validate the fields at the time of Document Release or posting.

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 570 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 291 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans