Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Query on Change in Standard code of D365BC on online Sandbox environment

Posted on by Microsoft Employee

I want to choose D365BC online Sandbox environment not Container Sandbox .Only Later version allows to change standard code, I cannot imagine to develop in NAV without change in Standard code. Is Microsoft team working on it for online Sandbox environment , let me know about the progress.

I came to know

 

We need to subscribe to triggered events of the standard codeunits and in event subscriber write custom logic.”

 

But No help on it on Microsoft

Give me link

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    As previously said, with BC no way to modify standard code. You can only use AL and the extension model, so attaching to events and extend standard tables and pages.

    There’s no a codeunit extension object. Standard codeunits trigger events and you can attach to those events to add your custom code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    I found Table Extension, page extension but no Code unit extension

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    "Obviously, modifying standard code is always possible."

    How  can it be done give me reference ? As  I read every where That D 365 BC is Using AL and We can not Modify Standard Code .

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    With NAV the recommendation is to check if your modification can be done by attaching to events and not directly by modifying standard objects. Transferring fields to Posted Tables is something that you can do by using events for example.

    Obviously, modifying standard code is always possible.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    Hi

    Why are you recommending   to avoid to change  standard code ?  Many Time we need to move new fields detail to  from Sales or Purchase invoice to Posted tables it is one example how this type of customizations will  be handled  ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    Thanks ,

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Query on Change in Standard code of D365BC on online Sandbox environment

    What do you mean? If you're talking about NAV 2018, you can work in C/AL extactly like previous version. You can also work with AL and you can modify standard code. Obviously, the suggestion is avoid to do so.

    Instead, if you're talikng about D365BC, you can develop by choosing an online sandobox or a local-hosted sandbox. You cannot modify standard code in D365BC and here you have to work with AL.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans