The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

HASLINKS Method (Record)

Determines whether a record contains any links.


Ok := Record.HASLINKS  


Type: Record

The record in the table for which you want to find the link.

Property Value/Return Value

Type: Boolean

true if the record contains at least one link; otherwise, false.


The link can be a link to a web site, a file stored on the local or on a remote computer, or a link to a page of your application.


The following code example retrieves record number 10000 from the Vendor table and stores it in the MyRecord variable. The HASLINKS method determines whether the record contains one or more links. Record number 10000 contains one link so the varHasLink variable displays Yes. This example requires that you create the following global variables.

Variable name DataType Subtype
MyRecord Record Vendor
varHasLinks Boolean Not applicable

varHasLinks := MyRecord.HASLINKS;  
MESSAGE('Does this record have one or more links: %1', varHasLinks);  

See Also

Record Data Type