Announcements
No record found.
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 community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 282 Super User 2026 Season 2
Aayush Tiwari 219
Subra 211 Super User 2026 Season 2