Class Browser For Navigation To URL

With the new Dynamics AX there are new APIs that are needed because of the technological changes. If you want to navigate the user’s browser to a different URL programmatically (and not by providing a link they can click) this can be done very easily by using the new class Browser.

The Browser class only has one single method, navigate, which has three parameters (of which only the first is mandatory):

  • URL (string)
  • Open in new tab (boolean)
  • Prompt (boolean)

I think all of them are self-explaining.

A simple example using a runnable class could look like the following. If you run it, it’ll open a new tab with the starting page of this blog.

class xltyBrowserExample
    /// <summary>
    ///     Runs the class with the specified arguments.
    /// </summary>
    /// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
        Browser browser = new Browser();
        browser.navigate('https://axility.NET/', true, false);


Leave a Comment