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...
Answered

How to write the code in between Procedure [Function] using AL [ BC W1 16.3] on premise

(1) ShareShare
ReportReport
Posted on by 256

Hi All

In the Codeunit  90 [Purch.-Post]  Ther is a function "PostInvoicePostingBuffer" and I want to write the code in between using event subscribing but this is no event.

BCW1.png'

so. I have a Question How to write the above code which is a mark on the above Image.  OR  there is another way to write the code if does not have an event subscriber. and can we override the "PostInvoicePostingBuffer"  procedure standard code with own code and execute the override method instead of the standard method. 

Please help me with that issue.

Thanks in advance

  • Mohsin Abbas Profile Picture
    525 on at

    Which version of BC are you on?

  • NeoMatrix Profile Picture
    256 on at

    Thanks for your Reply. I am working on Business central wave 1 Version: W1 16.3 (Platform 16.0.14073.14195 + Application 16.3.14085.14238)

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    You have essentially two choices:

    1) request Microsoft to add an event in the base app in the place you need (or rethink the solution)

    2) modify the base application

    The choice 1 is the only way to go if you're targeting the SaaS environment (you cannot modify the base app on SaaS) or if you want to be compatible with the SaaS environment.

    The choice 2 is a possibility that you can take if you're targeting ONLY the on-premise world (this extension will never work on SaaS).

  • NeoMatrix Profile Picture
    256 on at

    Thanks, @Stefano Demiliani. But if I want to do the above changes on-premises. can you give the sample example to achieve this task using AL?

  • Verified answer
    Mohsin Abbas Profile Picture
    525 on at

    Please check this video demonstration.
    www.youtube.com/watch

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional 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

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 671 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 434 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 241 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans