How will I run C# application on server from a code in Custom Object

274 views Asked by At

I tried adding this in the custom object.

System.Diagnostics.Process.Start("E:\archer\mycsharpapp.exe")

This gives me error System not defined.

2

There are 2 answers

2
Tanveer Shaikh On

I am afraid that it will not be possible for you to write any high-level language statements in a custom object. Custom objects only support client-side scripting languages like HTML/CSS javascript/jQuery etc.

Hope this helps!

0
Stan Utevski On

Tanveer is correct - you can't directly invoke the application on the server from the JavaScript code embedded into the Archer custom object field.

But you can create a basic web-application (on ASP, .NET, PHP, Java - any language you know) and make it listen to the requests on the given URL with certain properties. As soon as request is received, your web-server can execute the code you need. On top of that you can implement basic security by accepting end user session ID from Archer, so you can validate that given user is indeed logged in to Archer for each request.

Good luck!