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)

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,166 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,941 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

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans