• Home
  • About Me
  • Contact Me
  • Downloads
  • White Papers
  • Web Sites
  • Post List
  • Articles
  • FAQ

Olof Simren - Microsoft Dynamics NAV & 365 Business Central Blog

  • Home
  • About Me
  • Contact Me
  • Downloads
  • White Papers
  • Web Sites
  • Post List
  • Articles
  • FAQ

Run Objects in NAV 2013 using GETURL and HYPERLINK

August 24, 2014 Posted by Olof Simren Development, Miscellaneous 7 Comments

Here is a small tip (some of you might already know it): the GETURL together with the HYPERLINK can be used to run objects in NAV 2013 (even tables 🙂 ).

I am working on a tool to delete records from a database (to ‘clean’ a company from transactional data for example). Part of this tool is a function to view the data in the tables, and for this I needed a way to run a table from the NAV 2013 windows client (not the development environment). This turned out to be quite easy using the GETURL and HYPERLINK functions.

Here is an example of how it can be applied;

This record deletion tool will consist of a list of tables where a user can check the Delete Records checkbox for the tables where all data should be deleted. To assist the user in determining if records should be deleted or not a function to run the table to show the data will be in the ribbon of the page. The function will run the table of the line that is highlighted based on the Table Id field.

Record-Deletion-Dynamics-NAV

The code for this is as follows.

View-Records-Dynamics-NAV

The GETURL is used to build the link to the table and the HYPERLINK is used to open the link.

Now when the user clicks View Records Dynamics NAV will open the table and show all records just like if the table was run from the object designer.

Table-Run-Dynamics-NAV

Nice isn’t it!? 🙂

The tool itself to delete records might be something I publish here on my blog later.

Probably one of my shortest blog posts, I got a bit tired of writing about subcontracting so I thought it was time for a short more technical post in-between. 🙂

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X

Related


Discover more from Olof Simren - Microsoft Dynamics NAV & 365 Business Central Blog

Subscribe to get the latest posts sent to your email.

Tags: GETURLHYPERLINKObjects
7 Comments
Share
5

About Olof Simren

I am a Microsoft Dynamics NAV and 365 Business Central Expert, I started implementing Microsoft Dynamics NAV in 2002, back then it was called Navision Attain. Throughout the years there has been many exciting implementations in different parts of the world, all of them with different challenges but with one common theme; manufacturing. As a consultant, I bring over 20 years of experience in implementing Microsoft Dynamics NAV and 365 Business Central within manufacturing and distribution companies. The services I offer includes project management, consultation, development and training. Feel free to contact me if you need help with anything related to Microsoft Dynamics NAV or 365 Business Central. I work through my company Naviona where I team up with other skilled Microsoft Dynamics NAV and 365 Business Central Experts.

7 Comments

Leave your reply.
  • Ray
    · Reply

    July 2, 2015 at 2:55 PM

    Hey Olof,

    I’m a novice NAV user and am trying to add this into a page by creating a Page Action called “Open Link”. I then added the C/AL code you provided:

    HYPERLINK(‘file:///C:\Test\Test.html’)

    And when I try to save and compile it says “HYPERLINK is not a function, and only functions can be called with ‘(….’.”

    Any thoughts?

  • Ignas
    · Reply

    September 28, 2015 at 8:14 AM

    Hi Olof,

    NAV 2013 doesn’t support GETURL, R2 and higher NAV versions do.

    • Olof Simren
      · Reply

      Author
      September 28, 2015 at 8:42 AM

      Hi Ignas,
      Thanks for the info, good to know!

      /Olof

  • Rahmah
    · Reply

    January 14, 2016 at 5:47 AM

    Good afternoon,
    Please, can I open an external url from within NAV (Something like an iframe) ????

    I have used hyperlink but it is redirecting me to the browser.

    Thanks

    • Olof Simren
      · Reply

      Author
      January 27, 2016 at 9:13 AM

      Hi Rahmah,
      I have never tried this so I don’t know. If anyone else knows, then please leave a reply here.

      /Olof

  • Pareed Sharief
    · Reply

    April 28, 2017 at 11:54 AM

    Hi Olof,

    Is it possible to run external SSRS report from NAV?
    Does “HYPERLINK(‘file:///C:\Test\Test.html’)” this work in NAV 2015?

    Thanks

    • Olof Simren
      · Reply

      Author
      April 30, 2017 at 1:17 PM

      Hi Pareed,
      Yes, I don’t see why not.
      In your example you just have to be aware of what drive you are reffing to, the local drive where the client is running or on the server where the NAV service runs. Using a UNC path might be better.

      /Olof

Leave a Reply

Your email is safe with us.
Cancel Reply

My Dynamics NAV Partner

Naviona, LLC

Developers Wanted

Naviona is looking for NAV/BC developers. Let me know if you want to work with the best (instead of the rest :-)).

Categories

  • Assembly (3)
  • Development (31)
  • Finance (14)
  • General (26)
  • Inventory (22)
  • Manufacturing (34)
  • Miscellaneous (25)
  • Purchase (9)
  • Sales (11)
  • Warehouse (7)

Tags

.net Add-in Assembly Assembly BOM CAL Capacity Components Consumption Contact Costs Customer Development Dimensions Excel Finance Flushing General Ledger Inventory Item Items Lot Size Low-Level Code MRP NAV 2015 NAV 2016 Output PDF Planning Production Production BOM Production Orders Purchase Orders Receipts Reporting Reports Role Center Routing Sales Sales Order Sales Orders Stockkeeping Unit Subcontracting Task List Warehouse Warehouse Shipment

Recent Posts

  • XML Buffer and CSV Buffer Tables
  • Functionality Improvements in NAV 2017
  • Reversing Production Output and Consumption
  • Return Merchandise Authorization (RMA)
  • Sales Quote without Customer
  • Parallel Routings
  • Add Fields to the Item Tracking Lines
  • Field Level Security using Events in Dynamics NAV 2016
  • Schedule MRP
  • Activate WMS Functionality for Existing Location

Categories

  • Assembly
  • Development
  • Finance
  • General
  • Inventory
  • Manufacturing
  • Miscellaneous
  • Purchase
  • Sales
  • Warehouse

Contact Us

We're currently offline. Send us an email and we'll get back to you, asap.

Send Message

Categories

  • Assembly (3)
  • Development (31)
  • Finance (14)
  • General (26)
  • Inventory (22)
  • Manufacturing (34)
  • Miscellaneous (25)
  • Purchase (9)
  • Sales (11)
  • Warehouse (7)

Tags

.net Add-in Assembly Assembly BOM CAL Capacity Components Consumption Contact Costs Customer Development Dimensions Excel Finance Flushing General Ledger Inventory Item Items Lot Size Low-Level Code MRP NAV 2015 NAV 2016 Output PDF Planning Production Production BOM Production Orders Purchase Orders Receipts Reporting Reports Role Center Routing Sales Sales Order Sales Orders Stockkeeping Unit Subcontracting Task List Warehouse Warehouse Shipment

Recent Posts

  • XML Buffer and CSV Buffer Tables
  • Functionality Improvements in NAV 2017
  • Reversing Production Output and Consumption
  • Return Merchandise Authorization (RMA)
  • Sales Quote without Customer
  • Parallel Routings
  • Add Fields to the Item Tracking Lines
  • Field Level Security using Events in Dynamics NAV 2016
  • Schedule MRP
  • Activate WMS Functionality for Existing Location

Recent Comments

  • Isabel de los Santos on Production Lot Sizes
  • Abdelatif EL HANI on Reversing Production Output and Consumption
  • Roshan on Processing of Receipts
  • kuldeep Nama on Subcontracting Part 1: The Basics
  • Janine on Flushing Methods
  • Nathalie on Activate WMS Functionality for Existing Location
  • Georges W on Bill-to vs. Sell-to Customer
  • Richard L on Subcontracting Part 4: Warehouse Receipts

© 2025 · Olof Simren

  • Home
  • About Me
  • Contact Me
  • Downloads
  • White Papers
  • Web Sites
  • Post List
  • Articles
  • FAQ
Prev Next