Open URL in Web browser from D3fO using X++
Views (745)
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.
The post Open URL in Web browser from D3fO using X++ appeared first on CloudFronts - Microsoft Dynamics 365 | Power BI | Azure.
This was originally posted here.
Comments
-
Open URL in Web browser from D3fO using X++so thanks for this , but it does not open the exact url , it opens the site in new tab but with dynamics link which is not recognized so it throws an error.can you let me know how i can resolve that.
*This post is locked for comments