Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Modify OIOUBL in Business Central

Posted on by Microsoft Employee

Hi,

This is a danish localization. In NAV2018 - newer (Business Central) the localization code is moved to an extension.

In older versions of NAV I could open codeunit 13609 - "OIOUBL Export Sales Invoice" and make the adjustment for the file format, but with the Business Central I don't know how I can do it any longer. The code is now in the extension, but the source code is not on github or in the CD-package.

Is my option to go back to an older version of NAV (NAV2017) and take the codeunit there and compile it in the business central and make my changes to the codeunit?

How would you edit the OIOUBL export?

Thanks in advance

*This post is locked for comments

  • Suggested answer
    Claus Macali.dk Profile Picture
    Claus Macali.dk 997 on at
    RE: Modify OIOUBL in Business Central

    Hi Perhaps this link can save you for a lot of work

    Macali-OIOUBL - #MSDYN365BC

    Claus

  • Hasnain Ali Profile Picture
    Hasnain Ali 132 on at
    RE: Modify OIOUBL in Business Central

    Hi,

    Microsoft responded to our request and now we have an EVENT in codenuit "OIOUBL-Export Sales Invoice".

     OIOUBL_2D00_Export-Sales-Invoice.dal.png 

    Preview:


    pastedimage1653469873644v3.png

    pastedimage1653469924228v4.png

    Code:

    pastedimage1653469986124v5.png

    I hope this will be helpful

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modify OIOUBL in Business Central

    My issue is pretty similar.

    I am also trying to add "Work Description" from "Sales Invoice Header" in the xml file exported by "OIOUBL-Export Sales Invoice" codeunit but cannot find appropriate trigger to subscribe to.

    Also not able to see the codeunit's definition.

    Can anyone help!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modify OIOUBL in Business Central

    The function does not have events you can subscribe to. It's just 1 function thats 850 lines of code long that creates a XML file based on a posted sales invoice.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Modify OIOUBL in Business Central

    You can just create another extension by specifying it has dependencies and then you have access to their objects which you can modify by subscribing to the events.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modify OIOUBL in Business Central

    You need to investigate the code of extension and suggest an event to be added in the place of code where you want to change the logic.

    For event requests see this website: github.com/.../issues. Search for "event request"

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans