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

GL field requirements

(4) ShareShare
ReportReport
Posted on by 42
Hi, I was hoping someone could give some insight on some requirements we would like to turn on in relation to our general journals in Microsoft Dynamics Business Central 365. On our general journals we want to require that the subledger code field be required anytime an account beginning with 2440** is used. However, we don't want the rule to apply to any entry that has a document number that starts with PR or has a source code of "SYSFD". Is this possible to do? I am aware of how to make the field mandatory, but that applies to everything hitting that account. I am looking to see if you can create exceptions to those rules. I've attached a sample of the journal entries that are currently hitting this account
244000 JEs.png
I have the same question (0)
  • Martin Dráb Profile Picture
    238,745 Most Valuable Professional on at
    Moved from Integration, Dataverse, and general topics forum to Small and medium business | Business Central, NAV, RMS forum.
  • Suggested answer
    Valentin Castravet Profile Picture
    31,986 Super User 2026 Season 1 on at
    This is not possible with standard functionality. You would need a developer to customize the system, but it can be done through a customization.
     
  • Suggested answer
    Assisted by AI
    OussamaSabbouh Profile Picture
    11,394 Super User 2026 Season 1 on at
    Hello,
     
    Yes, you can enforce this rule, but only with a small AL customization.
    Standard BC cannot make a field conditionally mandatory with exceptions.
     
    Logic in code:
     
    Require Subledger Code only when Account = 2440**
     
    Except when Document No. starts with PR
     
    Except when Source Code = SYSFD
     
     
    This is done with an event subscriber on the general-journal validation.
     
    Regards,
    Oussama Sabbouh

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,055 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,014 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans