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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Fetch Order Links

(0) ShareShare
ReportReport
Posted on by

Hello

I am facing the problem to fetch all links for specified order in my winforms application.

Lets say we have sales order XXX and in nav client users can add links to this order. Now in my app I want to fetch and display all links related to this XXX order.

Links are stored in Record Link table and are connected with orders via Record ID.

record-link.png

My question is how can I achive that?

Is it possible to fetch links using web services (OData)? (It is possible to fetch order)

Is there a way or schema how to encode the Record ID?

Or only proper way is to write codeunit? (any sample?)

I can not find any informations about that so I will be also thankful for some links to API or samples.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    The relation is not so easy...

    In C/AL:

    Creation of a Record Link for Customer XXX:

    Then

    Cust.GET('XXX');

    RecRef.GETTABLE(Cust);

    RecordLink.INIT;

    RecordLink."Record ID" := RecRef.RECORDID;

    .....

    RecordLink.INSERT;

    Cust is record type variable Customer

    RecRef is RecordRef

    RecordLink is record type variable Record Link

  • Verified answer
    Andrey Baludin Profile Picture
    3,943 on at

    Here you can find good text by Suresh Kulla about it:

    community.dynamics.com/.../how-to-read-write-notes-in-navision-using-c-al

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans