Thursday, August 12, 2021

Generating D365 URL for a particular menu item

MenuItemName menuItemName = menuItemDisplayStr(WorkflowWorkListAssignedToMe);

var generator = new Microsoft.Dynamics.AX.Framework.Utilities.UrlHelper.UrlGenerator();

generator.EncryptRequestQuery = true;

generator.HostUrl = SysWorkflowHelper::getClientEndpoint();

generator.Company = curExt();


generator.MenuItemName = menuItemName;

generator.Partition = getCurrentPartition();


var fullURI = generator.GenerateFullUrl();

Info(fullURI.AbsoluteUri);


No comments:

Post a Comment