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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Export Notes From NAV 2015 and Import To Business Central Online

(0) ShareShare
ReportReport
Posted on by 60

I am trying to export all the customer Notes from NAV 2015 to BC Online. I have developed an XMLPort to export the notes from "Record Link" table. For the Field "Note" of type BLOB i am reading the data into BigText using streams.

The Export part is successfull and i have a file containing all the customer Notes.

But now to import it back to Business Central, i need to write the data bit by bit into "Note" field of Table "Record Link".
I am unable to do so.

Do you have any idea how to do that? Can we directly use data migration tool to migrate data from system tables? or is there any other way to do so?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    Import to a dedicated table. Write a codeunit to loop through and create the system link

  • azharsaeedkhan Profile Picture
    60 on at

    Hi Josh!

    Can you please elaborate how to wrtie them back to "Record Link" table?

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Sample of what I used to do this:

    procedure CreateSystemLink(IncomingRecordID: RecordId; NoteText: Text)

       var

           RecordLink: Record "Record Link";

           LinkManagement: Codeunit "Record Link Management";

       begin

           LastEntryNo += 1;

           RecordLink.Init();

           RecordLink.Company := CompanyName();

           RecordLink.Type := RecordLink.Type::Note;

           RecordLink.Created := CurrentDateTime;

           RecordLink."User ID" := UserId();

           RecordLink."Link ID" := LastEntryNo;

           RecordLink."Record ID" := IncomingRecordID;

           LinkManagement.WriteNote(RecordLink, NoteText);

           RecordLink.Insert(true);

       end;

       procedure GetLastEntryNo()

       var

           RecordLink: Record "Record Link";

       begin

           if RecordLink.FindLast() then

               LastEntryNo := RecordLink."Link ID"

           else

               LastEntryNo := 0;

       end;

       var

           LastEntryNo: Integer;

    }

  • azharsaeedkhan Profile Picture
    60 on at

    Thank you JAngle

    "Record Link Management".WriteNote(RecordLink, NoteText) is the function i was looking for.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,687 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 974 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans