Open URL through X++ code

We can open a URL in web browser from D365FO using X++ code. It is achieved using Browser class which extends System Class xBrowser having only method navigate(). It has three parameters from which only first is mandatory:

  1. downloadURL (string) – URL you want to browse.
  2. openInNewTab (Boolean) – It is used to specify URL should be open in same tab or new tab
  3. showExitWarning (Boolean) – Prompt a dialog to exit the current page.


Comments