Announcements
Hello everyone!
We are currently converting our solution from BC14 (C/AL - on premise) to BC16 (AL - Cloud).
During this process we have come across some commands, methods etc. that do not work in the cloud.
I am looking for a video or documentation that describes how to search, open and read several text files in a directory in the background.
Does anyone know any video or documentation for it?
Unfortunately BC16 does not accept internal methods of "File Management" like "GetClientDirectoryFilesList" or for file fields the Open command (FileF.Open(PathFile)). Unfortunately I can't find any documentation how to handle files in the cloud.
It would be nice if there was something "official" from Microsoft.
The user must not be asked interactively to select the file!
We need a fully automated variant that processes the files via the task queue (for example). Of course, the question arises as to which files or file system the cloud has access to at all.
Example: There are monthly (20-50) external text files with different file extensions (*.??| *.??) with price, quantities, information, etc. as an update for certain products or new products or products that need to be deleted.
These delivered files are unpacked into a directory. These files must then be able to be processed using a list page. This should be done in a kind of batch processing, so that the user does not have to select each file individually
We have now done the opening with BlobImport. But unfortunately "BLOBImport" works with the "DialogCaption". We cannot use that.
Is there an import method without "DialogCaption"?
Many thanks
Best wishes
Conchi
Thank you so much! Unfortunately, we only have the way to go via Azure! We wanted to avoid that.
Best wishes!
Conchi
In the cloud files are a different thing. You don’t have a file system. You can upload a file from client or a zip package and unpack it server side. Or (if you want to have a real file system in the cloud) use something like Azure Blob Storage where you can download multiple files with a simple GET http call.
Thanks butWe have to make cloud and the files should at least be selectable. Not just every single file. You can open and process the files without any problems. But only every single one. And you cannot expect the user to select a file 100 times.
If you target the onpremise environment (target = onprem in app.json) you can use the same methods for Files as in C/AL. On SaaS, you don't have a file system so you cannot browse a directory. You can upload a file from client (UploadIntoStream) or download it from an online storage.
André Arnaud de Cal...
293,289
Super User 2025 Season 1
Martin Dráb
232,068
Most Valuable Professional
nmaenpaa
101,156
Moderator