Sometimes it’s needed to add functionality not delivered by NAV. One way is to use .net addemblies or automations. Another scenario can be to run an external program in C/AL. The old way is to use the quite old SHELL Command or class WshShell of the Windows Scripting Host. In both cases when running an external program a security warning is displayed. To avoid that and to have also a much prettier solution, use the class System.Diagnostics.Process from the .net framework (assembly System.dll). For usage in RTC set the property RunOnClient to true, for usage on the server only like job queues set the value to false.
Posted inDynamics NAV & BC Tips & tricks