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

Olof Simren - Microsoft Dynamics 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 8 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:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Related


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

Subscribe to get the latest posts sent to your email.

Tags: GETURLHYPERLINKObjects
8 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.

8 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

  • Horst
    · Reply

    May 10, 2023 at 12:20 PM

    Hi Olof,

    Do you know where GETURL gets its values from? I have a quite wide landscape with several installations of BC, and if I use this function it tries to open the table in a complete different session. It does not take it from the Client User Settings, I already checked that. It also doesn’t take it from the TEMPLATE installation. So, at the moment I’m a bit confused why it always starts the hyperlink in another session.

    Thanks for any input.

Leave a Reply

Your email is safe with us.
Cancel Reply

Subscribe to My Blog via Email

Check Out Our Apps in AppSource

My Dynamics NAV Partner

Naviona, LLC

Categories

  • Assembly (3)
  • Development (35)
  • Finance (14)
  • General (28)
  • Inventory (24)
  • Manufacturing (36)
  • Miscellaneous (27)
  • Purchase (9)
  • Sales (11)
  • Warehouse (7)

Tags

.net Add-in AI AppSource Assembly Assembly BOM Business Central CAL Capacity Consumption Contact Copilot Costs Customer Development Dimensions Excel Finance Flushing General Ledger Inventory Item Item Tracking Low-Level Code MRP NAV 2015 NAV 2016 Output Planning Production Production BOM Production Orders Purchase Orders Receipts Reporting Reports Routing Sales Sales Order Stockkeeping Unit Subcontracting Task List Warehouse Warehouse Shipment Work Center

Recent Posts

  • Business Central Configuration Audit using Vibe Coding
  • Copilot in Planning Parameter Worksheet
  • Copilot in Planning Worksheet
  • Copilot Inventory Queries
  • Record Deletion Tool for Business Central in AppSource
  • Reopen Finished Production Orders
  • XML Buffer and CSV Buffer Tables
  • Functionality Improvements in NAV 2017
  • Reversing Production Output and Consumption
  • Return Merchandise Authorization (RMA)

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 (35)
  • Finance (14)
  • General (28)
  • Inventory (24)
  • Manufacturing (36)
  • Miscellaneous (27)
  • Purchase (9)
  • Sales (11)
  • Warehouse (7)

Tags

.net Add-in AI AppSource Assembly Assembly BOM Business Central CAL Capacity Consumption Contact Copilot Costs Customer Development Dimensions Excel Finance Flushing General Ledger Inventory Item Item Tracking Low-Level Code MRP NAV 2015 NAV 2016 Output Planning Production Production BOM Production Orders Purchase Orders Receipts Reporting Reports Routing Sales Sales Order Stockkeeping Unit Subcontracting Task List Warehouse Warehouse Shipment Work Center

Recent Posts

  • Business Central Configuration Audit using Vibe Coding
  • Copilot in Planning Parameter Worksheet
  • Copilot in Planning Worksheet
  • Copilot Inventory Queries
  • Record Deletion Tool for Business Central in AppSource
  • Reopen Finished Production Orders
  • XML Buffer and CSV Buffer Tables
  • Functionality Improvements in NAV 2017
  • Reversing Production Output and Consumption
  • Return Merchandise Authorization (RMA)

Recent Comments

  • Olof on Business Central Configuration Audit using Vibe Coding
  • Andrew Trayfoot on Business Central Configuration Audit using Vibe Coding
  • Barrett Allen on Reopen Finished Production Orders
  • Kateryna on Business Central Configuration Audit using Vibe Coding
  • Takeshi Setoya on Reopen Finished Production Orders
  • Steve on Consignment Inventory
  • Olof Simren on Copilot in Planning Worksheet
  • Omaer Amjad on Copilot in Planning Worksheet

© 2026 · Olof Simren

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