Of course, I figure out my own answer every time I type up a stackoverflow question, but I think the information is really useful.
This stack question led me to find out that C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\AxHLink.exe %1
handles Dynamics:// URLs.
Which led me to Microsoft’s community forums where somebody else was facing a similar problem as me.
So the solution would be to either:
- Create custom a URI handler with C# or some other language to communicate to AX (Similar to this)
- Hi-jack one of the 3 handled existing cases with some custom X++ code to try and fork off of it. Perhaps by changing the drilldown target in the URL and handling that way, or appending some special characters to the string.
- Call
"c:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe" -startupcmd=myfunction_myParams
and make that a clickable link.