Run a script file in web client for Nav 2016

Rakshitha
Member Posts: 13
Hi Experts!
I have create a script.bat file and I want to run in web client. It is running in RTC but in Web client i am getting following error
"The operation cannot complete because it uses a feature that is not supported (.NET Framework Interoperability.)"
I have written below code. Kindly help me
Process := Process.Process;
Process.StartInfo.UseShellExecute := FALSE;
Process.StartInfo.FileName := ScriptName;
Process.StartInfo.Arguments :='move ' + Flname + ' ' + newDir;
Process.StartInfo.CreateNoWindow := TRUE;
Process.Start();
CLEAR(Process);
I have create a script.bat file and I want to run in web client. It is running in RTC but in Web client i am getting following error
"The operation cannot complete because it uses a feature that is not supported (.NET Framework Interoperability.)"
I have written below code. Kindly help me
Process := Process.Process;
Process.StartInfo.UseShellExecute := FALSE;
Process.StartInfo.FileName := ScriptName;
Process.StartInfo.Arguments :='move ' + Flname + ' ' + newDir;
Process.StartInfo.CreateNoWindow := TRUE;
Process.Start();
CLEAR(Process);
0
Answers
-
.NET is not supported in the webclient, therefore you cannot run your script throw webclient.
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0 -
Is there any other way out for running the script apart from .NET in web client. Please suggest.0
-
On a NAV 2016 version you could create a Job Queue Entry and run that from your webclient.For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0
-
Hi SanderDk!
Thanks for one of the solution
Actually I have created script file in order to move file from downloads folder to the predefined folder since the web client automatically downloads file to browser setting - download folder.
This script has to get run as soon as i download the file. Using Job Queue Entry there will be the time gap.
0 -
kindly help me with some solution0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions