Question

Is there a way to open a specified document, eg "production order 123" or form, eg "purchase orders" in Ax2012 from an external application directly?

In detail, I'm looking for something similiar like AXPath, but this doesn't work with versions greater then 2009.

Is there any ( maybe included ) way to achieve this?

Was it helpful?

Solution

There is! It's using AX's drilldown functionality which uses AxHLink.exe to handle dynamics:// URLs, which are passed to the Classes\SysStartupCmd function. You could also create some custom code there if you wanted to launch the AX client executable directly.

My question I asked some while back should have a great deal of useful information in it here:

What handles dynamics:// URLs?

Some more can be found: http://technet.microsoft.com/en-us/library/aa834337.aspx

EDIT: It sounds like you are confused or the posts weren't clear enough. I think you have 3 basic options.

  1. Dynamics:// URLs are handled by AxHLink.exe and they only seem to handle drilldown, viewalert, and viewalertrule. So if you want to use Dynamics:// URLs, you will need to hi-jack those somehow. There is a pastbin from Jan in that other stack post.
  2. Create a custom URI handler and event poller (lot of work) see http://axcoder.blogspot.dk/2010/10/how-to-open-form-in-running-ax-from.html
  3. Extend SysStartupCmd and then instead of using Dynamics:// URLs, just call Ax32.exe -startupCmd directly and a parameter can be passed to your custom class.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top