Read Server & Tenant Settings from C/AL Code

Back in April 2015 I wrote an article about reading server settings with C/AL code. Unfortunately, that code didn’t work in NAV 2015 and above. However, the question pops up now and then, and I decided to give it another try. Being curious myself, of course…

And I found a solution that works on NAV 2016. Didn’t test it with NAV 2015, but I’m sure one of you will.

Bron : Kauffmann @ Dynamics NAV
Lees meer…

Reading from and writing to the Clipboard

Have you ever tried putting something in the clipboard? Well, aside from literally copying or pasting?
If you have ever tried something like this in .NET, you might remember, you need to call the functionality in a thread with STA mode. Try doing this in your NAV Development Environment…

Bron : Magno’s Blog
Lees meer…

Read Server Settings from C/AL code

In this example I will show how to read the server settings directly from NAV code. Without the need to know the location of the config file or to create an external .Net dll. Also PowerShell isn’t needed, and you don’t need any information about the running environment. Only the tenant ID is important in case you are running in a multitenant environment, but the tenant ID is already available in C/AL code with the TENANTID key word.

Bron : Microsoft Dynamics NAV Thoughts
Lees meer…