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

Notifications

Announcements

No record found.

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
    133 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
    133 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans