AX 2012: show your own page as the Role Center
An unsupported AX 2012 trick to show an intranet or custom ASPX page as the Role Center without Enterprise Portal installed.
Role Center pages and Enterprise Portal were removed in Dynamics AX 7.0; workspaces replace them.
- First written
- Re-read
- Versions
- AX 2012
In AX 2012 the Role Center was an Enterprise Portal page. If you did not have Enterprise Portal, or did not want to install it, you could still point the Role Center to your own page, such as an intranet or SharePoint site. This note shows how, for testing only. Role Center pages and the Enterprise Portal client were removed as of Dynamics AX 7.0, and the workspace form pattern replaces them (Removed or deprecated features in previous releases).
The original note
If you don’t have Enterprise Portal installed (or don’t want to install it) but want to show your own page to users as the Role Center in Dynamics AX 2012, for example your intranet or SharePoint site, you can do it quite simply.
Attention: this is not a supported procedure. Do it only for testing.
These are the steps:
- Create a website on localhost, for example, and put an ASPX page in it.
- Comment out lines 11 and 12 of the
validatemethod on form EPWebSiteParameters > Data Sources > WebSiteTable > InternalUrl. - Add your website to the Enterprise Portal configuration (System administration > Setup > Enterprise Portal > Web sites).
- Link your user to an EPRoleCenter profile (System administration > Common > Users > User profiles), for example Accountant.
- Modify the
getCurrentUsersHomepageURLPathmethod of theProfileManagerclass: comment out the whole code and return your own ASPX page, in my exampledefault.aspx. - Close the Dynamics AX client and reopen it. Your Role Center is now your own page.
Links from the page into AX can look like this:
menuitemaction://CueRun+CueId=35637150593/
In this case, the form related to the cue opens.
Links are handled by the processLink method of SysHelp. Refer to that class, or to the standard Role Center links, for more information to build your own Role Center page.
References
- Removed or deprecated features in previous releases (Microsoft Learn): Role Center pages and Enterprise Portal client.