web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • 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,166 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,166 Most Valuable Professional on at

    You can check here:

    docs.microsoft.com/.../devenv-publish-code-customization

    demiliani.com/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans