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.
We are honored to recognize Mansi Soni as our August 2025 Community…
A new season of Super Users has arrived, and we are so grateful for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.