Open URL in Web browser from D3fO using X++
In this blog article, we will see how we can open a URL in web browser from D3fO 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:
- downloadURL (string) – URL you want to browse.
- openInNewTab (Boolean) – It is used to specify url should be open in same tab or new tab
- showExitWarning (Boolean) – Prompt a dialog to exit the current page.
Create a new Class:
class CFSBrowseURL
{
}
Call URL:
public static void main(Args _args)
{
Browser browser = new Browser();
browser.navigate('www.cloudfronts.com', true, false);
}
So, this will open URL within a new tab in browser using X++. Let me know your reviews and queries. I will soon come up with more articles, as I further explore D365 Operations.
Related posts:

Resolving SSL/TLS Secure Channel Trust Errors in Dynamics 365 Finance and Operations

How to change a Bill of material (BOM) item on a production order
How to Set Up a Local Development Environment for D365 Finance and Operations Without Azure Costs
![Shopify Meets Dynamics 365 Finance and Operations: A Guide to Integration [Part 2]](https://www.cloudfronts.in/wp-content/uploads/2024/12/DALL·E-2024-12-14-12.29.44-A-professional-illustration-depicting-the-integration-between-Shopify-and-Dynamics-365-Finance-and-Operations.-The-image-shows-Shopify-on-one-side-wit-150x150.webp)
