Skip to main content

Record Links in Microsoft Dynamics NAV(NAVISION ERP)

Introduction:

In Microsoft Dynamics NAV(NAVISION ERP), there is a feature on Financial Documents called Record Links.
Record Links are used to copy multiple URL links, Texts on the documents so that it can be used for reference later.
The best part of Record Links is that, these can be added through Document and post it. After posting these the Record Links are copied to G/L, Subledger and Posted Documents as well.

Pre-requisites:

  • Microsoft Dynamics NAV

Books & References:

https://forum.mibuso.com/discussion/41101/how-to-copy-notes-stored-in-record-links-table

Demonstration:

1. What is Record Links:
Record Links is a feature to add links and texts on Documents. You will need to click on Links Actions on the page.

You will get the Link insertion Window, where as below.
Records Link Insertion

After the Link is inserted, you will get a view where you can open the link.
Viewing Record Links

2. How Record Links work:
Record Links is stored in System Table 2000000068 Record Link. This Record Link is linked through the RECORDID defined in the Record Link Table.

Record Link Table

To copy is Record Link from one table to another, we can either use Rec.COPYLINKS or we make use of Codeunit 447 Record Link Management
Record Link Management - CopyLinks
ToRecord.COPYLINKS(FromRecord)
To check if the specific Record has a Link then we make use of Rec.HASLINKS
Record.HASLINKS

After COPYLINKS, we can also delete links for the current record using Rec.DELETELINKS
Record.DELETELINKS

3. How to use these in your customizations:
In this case, I want to attach the Record Link on the General Journals. After the posting from General Journal Lines is done, I want the Records Links to be copied to the corresponding General Ledger Entries.

Adding Record Links System Part Page to Page 39 General Journal

This will create Record Link part page on General Journals. After adding the Record Links System Part Page, these Links have to be forwarded to General Ledger Entries and Subledger entries as well.
This can be accomplished by using the CopyLinks function to copy the data from General Journal to General Ledger and Subledger.
Copying the Links from General Journal to Records through posting Codeunits
I have put this code in all the posting functions such as
PostGLAcc(GenJnlLine,Balancing)       ==> FOR G/L ENTRIES
PostCust(GenJnlLine,Balancing)            ==> FOR CUSTOMER ENTRIES      PostVend(GenJnlLine,Balancing)           ==> FOR VENDOR ENTRIES
PostBankAcc(GenJnlLine,Balancing)    ==> FOR BANK ENTRIES
PostFixedAsset(GenJnlLine)                  ==> FOR FIXED ASSET ENTRIES
PostICPartner(GenJnlLine)                    ==> FOR INTERCOMPANY ENTRIES


After these functions are called, ie. the Record Links are copied then, the Links on Gen. Jnl. Lines needs to be cleared.
Deleting Link in  after link have been copied - Code Function

Output:
Links copied from General Journals to General Ledger Entries


Conclusion:

In this blog, I have written about what Record Links are and how they are useful in Microsoft Dynamics NAV.
In my next blog, I will be trying to check how we can extend this functionality in Microsoft Dynamics 365 Business Central.

Hope this helps!

Comments

Sunny said…
Hi Olister,

Thanks for sharing record link functionality and enhancements to it.

Please let me know if you have customised feature to mass upload links to each GL entire using csv or excel.

Thank you.
Sunny
Hi Sunny,

Yes this can be built easily. Let me know if you are interested.

Thanks.

Popular posts from this blog

Understanding and How to use APIs Business Central - 2

Introduction:
In my last blog post (Business Central API -1 ) on Creating API in Business Central, we discussed all the commonly used properties of the page, query, and controls like field and data-item. In today's blog, we will be diving deeply into the validation of the data passed through the API endpoint, how it enters into the source tables and is manipulated to be inserted/modified into single or multiple tables.
Also, I will be demonstrating how APIs are to be used.

Pre-requisites:
Microsoft Dynamics Business Central (SaaS)VS Code(https://code.visualstudio.com/download)AL Language Extension(https://tinyurl.com/yyvzxwkb)API V1 from Business Central On-Premise DVD
Books & References:
API V1 from Business Central On-Premise DVDAPI(V1.0) for Business Central (Click Here)API(Beta) for Business Central (Click Here)
Theory:
Understanding API in Business Central 1. BINDSUBSCRIPTIONS: Use to trigger IntegrationEvent for the Codeunit stated in parameters whenever the function calling BI…

Creating APIs in Business Central - 1

Introduction:
While writing a blog on Automated Testing in Business Central, I was going through sample apps provided by Microsoft and realized that the complexity is nowhere close to what examples Microsoft has provided on docs.microsoft.com. In this blog, I will try to explain how APIs work and how to be creative with the implementation. Also, an API which were in beta are finally out with version V1.0 in the April 2019 release let's see some important key things from development aspects.
This blog is going to be theoretical one kindly bear with me.


Pre-requisites:
Microsoft Dynamics Business Central (SaaS)VS Code(https://code.visualstudio.com/download)AL Language Extension(https://tinyurl.com/yyvzxwkb)API V1 from Business Central On-Premise DVD
Books & References:
API V1 from Business Central On-Premise DVDAPI(V1.0) for Business Central (Click Here)API(Beta) for Business Central (Click Here)
Solution:

Key Requirements:
API source table must have an Id(GUID) field per record for m…

Enum Object in Business Central - How to create and how to extend!

Introduction:
Since the dawn of Business Central Era (2nd April 2018 - Today), there are many new data types introduced by Microsoft.
One such data type is Enum(Enumeration). Essentially, what enumeration is having a single select value with multiple options at a given time!
Well, I know what your thinking what about the 'Option' data type.
Anyways, enough of talking let's just dive in!

Disclaimer:The knowledge in this blog is true and complete to the best of authors and publishers knowledge. The author and publisher disclaim any liability in connection with the use of this information.
Pre-requisites:
Microsoft Dynamics Business Central (SaaS or On-Premise)
VS code with AL Language extension

Code:
1. Enum as an Object:
Just like Tables and Pages, Enum behaves like an Object.
Note that Extensible means that the Enum Object can be extended in another module. By default, this property is set to TRUE.



Enums and Enum Extensions behave differently. They follow a different number se…