Accessing the URL of AxUrlMenuItem from AX into EP (Code behind)

Accessing the URL of AxUrlMenuItem from AX into EP (Code behind)

MCP · Azure DevOpsYour delivery board, readable by an agentMCP · DataverseOne consent, and the data layer opensMCP · Dynamics 365 F&OConnecting F&O to an agent Microsoft hasn’t documented
Archive recovery note: the supplied Blogspot backup did not contain a separate saved page for this older entry. The text available in its archive/listing capture has been preserved and flagged for a later completeness check.
Sometimes we need to change/append the URL defined on AXURLMenuitem in Dynamics AX 2012 in order to open different EP pages based on user selection. Here is the code to  Create the complete URL in code (based On eb Menu Items)      protected override void OnPreRender(EventArgs e)     {                // Get the URL for the webpage that referenced the current record                AxUrlMenuItem url = new AxUrlMenuItem("EPSalesTableInfo");                 // update the hyperlink to point to the URL         hpRecord.NavigateUrl = url.Url.ToString();        // you can use this URL to redirect to any page like        Response.Redi...
Previous article← Making string field a custom lookup on user selection
Discussion

Ask a question or leave feedback

This is a review interaction. The WordPress version will store, thread and moderate comments.

Thanks — submitted for moderation in this review.
Search the whole site · Ctrl/⌘ + K