Executes external programs and operating system commands from Dynamics Busniess central (SHELL)

Firas
Member Posts: 25
Hello
Dos anybody know i can i emplemt SHELL in extention 02 programming?
Regs.
Firas
Dos anybody know i can i emplemt SHELL in extention 02 programming?
Regs.
Firas
Firas
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant
0
Comments
-
/Firas
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant0 -
You can't.
Why do you want to use it?Jan Veenendaal0 -
Hi Jan
i want to send a labe file to Citizen CLP label printer
IF FILE.EXISTS(PrintFilname) AND FILE.EXISTS(BatchFileName) THEN BEGIN
SHELL(BatchFileName);
IF PDAOps‘t."delete-temp-fil" THEN BEGIN
SLEEP(2000);
ERASE(PrintFilname);
ERASE(BatchFileName);
END;
END;Firas
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant0 -
SHELL doesn't exist as a command anymore; and file handling in AL is only possible in OnPrem situations.
The best way to solve this is by calling an external application throug (e.g.) web services.Jan Veenendaal0 -
@Jan_Veenendaal is rigth, you cannot use shell or directly work with the file system of a Extension.
But if you only are working with an onprem installation you can set your Target in your app.json to internal and there but you can work with both your file system and .NET, with .NET you can call a process (instead of shell)
If your are working with cloud you can handle this a couple of ways, you could use a Azure service bus to work with your file system or you can set up a directory to save your files from BC and set up a windows task schedule to handle file from that folder and sent to to a printer.
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0 -
Thnk you so much for your tips, i have already made a .NET call a process function .
Is it possable to use RDLC layout to solve this challange?
@SanderDk @Jan_Veenendaal
Firas
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant0
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