Skip to main content
Solved

Running EXE with parameters from Acumatica


Hello,

I need help in trying to execute an executable with parameters from my acumatica application.

Best regards.

 

Best answer by Hughes Beausejour

There’s a difference between having the browser open the executable from Acumatica webpage and having Acumatica server run the application (without using the browser, without direct user intervention).


It is quite easy to open an external application from the browser. You just need to associate a file type with an application in windows (example: docx files opened by Word application, .xlsx files opened by Excel..): Change default programs in Windows 10 (microsoft.com)

In Acumatica webpage you can throw a file redirection exception to open the app.

It is also possible to launch an external app with a custom URI scheme handler.

This is the method used for url like ‘mailto:email@address.com’ that opens a windows email client:
windows - URI scheme launching - Stack Overflow

 

It is a very different scenario to have Acumatica server application directly execute a remote executable located on a different network. Acumatica server application runs on ASP platform and ASP doesn’t allow such remote code execution. That would be a major security concern if it were possible. If you need to communicate directly from Acumatica server application to a remote network we recommend to build an external web service that can be called from Acumatica.

View original
Did this topic help you find an answer to your question?

5 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • March 30, 2021

@mohamed1walha  Could you please provide more details on the above requirement. 


  • Author
  • Jr Varsity II
  • 22 replies
  • March 30, 2021

Hello @Naveen B , I want to run external application (EXE), from customization project acumatica code and send parameters to EXE.

 


Hughes Beausejour
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Developer Support Team
  • 91 replies
  • March 30, 2021

Does the external executable have a UI? Is it a console program? Is Acumatica website self-hosted or hosted on Acumatica SaaS platform?


  • Author
  • Jr Varsity II
  • 22 replies
  • March 30, 2021

Thank you @Hughes Beausejour .

I want to run a Windows Forms application from screen acumatica. My Windows Forms application is hosted in my local server and the Acumatica website is hosted on Acumatica SaaS platform.


Hughes Beausejour
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Developer Support Team
  • 91 replies
  • Answer
  • March 30, 2021

There’s a difference between having the browser open the executable from Acumatica webpage and having Acumatica server run the application (without using the browser, without direct user intervention).


It is quite easy to open an external application from the browser. You just need to associate a file type with an application in windows (example: docx files opened by Word application, .xlsx files opened by Excel..): Change default programs in Windows 10 (microsoft.com)

In Acumatica webpage you can throw a file redirection exception to open the app.

It is also possible to launch an external app with a custom URI scheme handler.

This is the method used for url like ‘mailto:email@address.com’ that opens a windows email client:
windows - URI scheme launching - Stack Overflow

 

It is a very different scenario to have Acumatica server application directly execute a remote executable located on a different network. Acumatica server application runs on ASP platform and ASP doesn’t allow such remote code execution. That would be a major security concern if it were possible. If you need to communicate directly from Acumatica server application to a remote network we recommend to build an external web service that can be called from Acumatica.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings