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 :
Microsoft Dynamics NAV (Archived)

System Notes

(0) ShareShare
ReportReport
Posted on by 5,136

I am in Sales Order List and in the Sales Order List there is a System Notes Fact box which is pretty neat.  users can make notes for each sales order!

The problem is I don't know how to retrieve these notes so I can display in a report.   I want to write a report that details each open sales order and any system notes created for that sales order.  Do you think I can make this happen?  I looked at Record Links table but nothing there shows me how to link to a sales order.

Please help!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    to filter the record links follow

    forum.mibuso.com/.../how-to-copy-notes-stored-in-record-links-table

    to read the note text follow

    nav-magno.be/.../reading-notes-through-code

  • Verified answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at
    RecRef.GETTABLE(SalesHeader);
    RecordLink.SETRANGE("Record ID",RecRef.RECORDID);
    IF RecordLink.FINDFIRST THEN BEGIN
      REPEAT
        RecordLink.CALCFIELDS(Note);
        IF RecordLink.Note.HASVALUE THEN BEGIN
          CLEAR(NoteText);
          RecordLink.Note.CREATEINSTREAM(Stream);
          NoteText.READ(Stream);
          NoteText.GETSUBTEXT(NoteText, 2);
          MESSAGE(FORMAT(NoteText));
        END;
     UNTIL RecordLink.NEXT = 0;
    END;

    Variables
    
    RecordLink -> Record - Record Link
    
    NoteText -> BigText
    
    Stream -> InStream
    
    RecRef -> RecordRef

    Try this Code where you pass the sales header to the function, it will loop through all the notes for that record and at the end where message is there you can store the value in a text variable and use it accordingly.

  • mbr Profile Picture
    5,136 on at

    Thank you Suresh!  Much obliged.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans