Save file to Server BC25 OnPrem

TESDeveloperTESDeveloper Member Posts: 42
edited 2024-12-23 in NAV Three Tier
Is it still possible to save a file to a server location within Business Central 25 on-premise?

Is anyone able to share a working example?

Thank you.

The current solution doesn't appear to save to the file path:
FilePath := \\SomeServer\SomeFolder\File.txt
FileMgt.BLOBExport(TempBlob, FilePath, true);

Answers

  • txerifftxeriff Member Posts: 514
    I would recommend to explore other workarounds because file export is something we shoud avoid.
    Have a look to codeunit file management, try something like the below perhaps?
    procedure CreateAndWriteToServerFile(FileContent: Text; FileExt: Text) FileName: Text
Sign In or Register to comment.