Announcements
public display str getDeepLinkSalesTable() { str deepLink; // gets the generator instance var generator = new Microsoft.Dynamics.AX.Framework.Utilities.UrlHelper.UrlGenerator(); var currentHost = new System.Uri(UrlUtility::getUrl()); generator.HostUrl = currentHost.GetLeftPart(System.UriPartial::Authority); generator.Company = curext(); generator.MenuItemName = menuItemDisplayStr(SalesTable); generator.Partition = getCurrentPartition(); // repeat this segment for each datasource to filter var requestQueryParameterCollection = generator.RequestQueryParameterCollection; requestQueryParameterCollection.AddRequestQueryParameter(formDataSourceStr(SalesTable, SalesTable), fieldStr(SalesTable, SalesId), this.SalesId); System.Uri fullURI = generator.GenerateFullUrl(); // to get the encoded URI, use the following code if (fullURI.AbsoluteUri != //) deepLink = fullURI.AbsoluteUri; return deepLink; }
public void postLoad() { super(); this.DeepLinkSalesTable = CustomTable::find(this.SalesId).getDeepLinkSalesTable(); }
IApplicationEnvironment env = EnvironmentFactory::GetApplicationEnvironment(); str currentUrl = env.Infrastructure.HostUrl; System.Uri currentHostUrl = new System.Uri(currentUrl); UrlGenerator urlGenerator = new UrlGenerator(); urlGenerator.HostUrl = currentHostUrl.GetLeftPart(System.UriPartial::Authority);
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 673 Super User 2026 Season 1
Abhilash Warrier 280 Super User 2026 Season 1
Martin Dráb 213 Most Valuable Professional