Editing codeunit 44 — Dynamics NAV 2013 R2

Add the appropriate Insight code changes to the codeunit design. Carefully editing codeunit 44 can preserve any changes that have already been made to it.

The file COD44.txt resides in the NAS working directory subfolder that holds the Dynamics NAV localization, database version, and build, for example: ..\Microsoft Dynamics NAV\70\Service\Add-Ins\Scribe\ScribeModifications\W1.7.10.35473.

To edit the codeunit, use the .txt file that matches your version of Microsoft Dynamics NAV. TIBCO suggests that you review COD44.txt before editing codeunit 44.

To edit codeunit 44

  1. Open the Microsoft Dynamics NAV Development Environment.
  2. Click Tools > Object Designer. The Object Designer appears.
  3. Click Codeunit (Codeunit Icon).
  1. From the list of codeunits, select codeunit 44, NASManagement.
  2. Click Design. The C/AL Editor appears.
  3. Edit codeunit 44 NASManagement. Add the following at the start of the CASE statement of the NasHandler:

    After:

    CASE Parameter OF
    'JOBQUEUE':
    CODEUNIT.RUN(CODEUNIT::"Job Queue - NAS Start Up");

    Add:

    //*****SCRIBE BEGINS*****
    'SCRIBE':
    CODEUNIT.RUN(CODEUNIT:: "Scribe Adapter Hooks");
    //*****SCRIBE ENDS*****

  4. When you are done, save the codeunit and make sure that it compiles without errors.

    Make a note of the codeunit's new revision level.

Next step

See also

Editing the codeunits — Dynamics NAV 2013 R2