web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Launch External Application from Dynamics AX 7

(0) ShareShare
ReportReport
Posted on by

Hello,

Does anyone know if it's possible to launch an external application from The New Dynamics AX 7?  In AX 2012 we use WinAPI::ShellExecute to launch an application.  Is it possible in AX 7?  If so, how?

*This post is locked for comments

I have the same question (0)
  • Greg's Mom Profile Picture
    on at
    RE: Launch External Application from Dynamics AX 7

    Thanks, I think this should work.  I'll investigate it further.  

  • Verified answer
    Martin Dráb Profile Picture
    235,876 Most Valuable Professional on at
    RE: Launch External Application from Dynamics AX 7

    What about registering a protocol hander (e.g. for myapp://) and simply providing an HTML link from AX?

  • Greg's Mom Profile Picture
    on at
    RE: Launch External Application from Dynamics AX 7

    [quote user="Martin Dráb"]

    What exactly do you want to achieve?

    Do you want to execute an application on client, from the browser? Or do you want to run something on server, from the web application in Azure?

    [/quote]
    I'd like to start an application locally on the user's machine (or on a local RDS).  We have some legacy client applications (coded in VB6 and .NET WPF) which
    we currently launch from AX 2012 using WinAPI::ShellExecute with everything running on our RDS.  We are considering options of how we can continue to allow users to launch these legacy applications if we make the move to AX 7.  Preferably we would launch the legacy executable on our RDS but we could have these applications installed locally on the user's desktop. 
    Since the client for AX 7 is a web browser, I am not sure how we can launch an application that is on the user's local client machine or our local RDS. We are considering migrating these legacy applications to web sites but were considering whether it will even be possible to launch an executable on the user's local machine or an RDS from the AX 7 application.
    Thanks for any feedback you can provide on this!
  • Martin Dráb Profile Picture
    235,876 Most Valuable Professional on at
    RE: Launch External Application from Dynamics AX 7

    What exactly do you want to achieve?

    Do you want to execute an application on client, from the browser? Or do you want to run something on server, from the web application in Azure?

  • Greg's Mom Profile Picture
    on at
    RE: Launch External Application from Dynamics AX 7

    [quote user="Denis Macchinetti"]

    Hi

    Take a look how work Open button on the DocuView form.

    [/quote]

    Thanks for the suggestion, Denis.  I am struggling to see how DocuView can help me.  I looked at the Open button of the DocuView form and I can see that it calls the main method of the DocuAction class.  From here it looks like we call the run method of the DocuAction class and there is a case statement that can handle adding, printing, or showing documents.  Can we use this to launch an external application?  I have my company's legacy (VB6 and .NET) applications that I would like to be able to open from The New Dynamics AX 7.  I wasn't sure if this will be possible with AX 7 like we are able to do with AX 2012 and previous using WinAPI::ShellExecute since AX 7 is web based. 

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at
    RE: Launch External Application from Dynamics AX 7

    Hi

    Take a look how work Open button on the DocuView form.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans