Skip to main content

Notifications

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?

  • azharsaeedkhan Profile Picture
    60 on at
    RE: Export Notes From NAV 2015 and Import To Business Central Online

    Thank you JAngle

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

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: Export Notes From NAV 2015 and Import To Business Central Online

    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
    RE: Export Notes From NAV 2015 and Import To Business Central Online

    Hi Josh!

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

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: Export Notes From NAV 2015 and Import To Business Central Online

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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans