You must add the appropriate Insight code changes to the codeunit design. Carefully editing codeunit 86 can preserve any changes that may have already been made to it.
The file COD86.txt resides in the NAS working directory subfolder that holds the Dynamics NAV localization, database version, and build, for example: ..\Microsoft Dynamics NAV\60\Application Server\ScribeModifications\W1.6.02.32012.
To edit the codeunit, use the .txt file that matches your version of Dynamics NAV. TIBCO suggests that you review COD86.txt before editing codeunit 86.
To edit codeunit 86
Note: On the Tools menu, click Object Designer or press SHIFT + F12.
Name | DataType | Subtype | Length |
---|---|---|---|
ScribePublisher | Codeunit | Scribe Publisher | |
RecRef | RecordRef |
After:
SalesOrderHeader.INSERT(TRUE);
Add:
//
Trigger ScribePublisher
RecRef.GETTABLE(SalesOrderHeader);
ScribePublisher.PublishInsertion(RecRef);
After:
ToDocDim.DELETEALL;
Add:
//
publish deletion of sales quote line
RecRef.GETTABLE(SalesQuoteLine);
ScribePublisher.PublishDeletion(RecRef);
//
publish insertion of sales order line
RecRef.GETTABLE(SalesOrderLine);
ScribePublisher.PublishInsertion(RecRef);
After:
DocDim.MoveDocDimToDocDim(
FromDocDim,
DATABASE::"Sales Line",
SalesOrderHeader."No.",
SalesOrderHeader."Document Type",
SalesOrderLine."Line No.");
Add:
//*****SCRIBE BEGINS*****
// publish deletion of sales quote line
RecRef.GETTABLE(SalesQuoteLine);
cribePublisher.PublishDeletion(RecRef);
// publish insertion of sales order line
RecRef.GETTABLE(SalesOrderLine);
ScribePublisher.PublishInsertion(RecRef);
//*****SCRIBE ENDS*****
Add:
// publish deletion
of sales quote header
RecRef.GETTABLE(Rec);
ScribePublisher.PublishDeletion(RecRef);
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.
Note: In the Object Designer, in the Version List column, edit the Sales-Quote to Order codeunit's version to reflect the new revision level.
See also
Editing the codeunits — Dynamics NAV 2009 R2