Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

minimum amount posted in a bank account

Posted on by 41
Dear All,
I want to restrict the minimum amount of that can be posted in a bank account. Shouldn't go past 90000
Any entry posting a positive amount needs to be considered.
How should I go about it? which trigger in AL do I use?
  • Suggested answer
    Ahmad Subhani Profile Picture
    Ahmad Subhani 22 on at
    minimum amount posted in a bank account
    For that You have to Write a Codeunit:
     
    Focus on the General Journal Line Table, where the bank account transactions are initiated.

    Develop a custom Codeunit to handle validation logic.

    This Event Triggers before a journal line is posted or inserted. 

     
    var
              BankAccount: Record "Bank Account";
    begin
              if Rec.Amount > 0 then begin
              BankAccount.Get(Rec."Account No.");
              if Rec.Amount < 90000 then
              Error('Write the Error Message');
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 72,548 Super User 2024 Season 2 on at
    minimum amount posted in a bank account
    In your previous question, when do you need to control it? If it is during General Journal posting, then you can verify it in the OnValidate Trigger of the amount input, or before Post.
     
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,203 on at

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,988 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,656 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans