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...
Unanswered

Adding Notes to reports in Business Central

(0) ShareShare
ReportReport
Posted on by 306
Hello, I am using the GetNote procedure below to add Notes to a report in Business Central.
 
The notes are getting printed on the report, but it is adding a special character at the beginning.
 
The actual Note does not contain any special character at the beginning. Can someone please suggest how to remove this special character on the report?
 
Any help will be greatly appreciated. Thank you!
 
 
 
 
 
    procedure GetNote(RecRef: RecordRef): Text[250]
    var
        RecordLink: Record "Record Link";
        NoteText: BigText;
        InStr: InStream;
 
    begin
        Clear(Notes);
        RecordLink.SetRange("Record ID", RecRef.RecordId);
        RecordLink.SetRange(Type, RecordLink.Type::Note);
 
        if RecordLink.FindSet then
            repeat
                RecordLink.CalcFields(Note);
                if RecordLink.Note.HasValue() then begin
                    Clear(NoteText);
                    RecordLink.Note.CreateInStream(InStr);
                    NoteText.Read(InStr);
                    NoteText.GetSubText(NoteText, 2)
                end;
            until RecordLink.Next() = 0;
        Notes := CopyStr(Format(NoteText), 1, 250);
    end;
I have the same question (0)

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 Winners!

Congratulations to our community stars!

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 673 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 409 Most Valuable Professional

#3
YUN ZHU Profile Picture

YUN ZHU 375 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans