Save files from CodeUnit

Hi,

Is there a way to load a file on the client side using CodeUnits instead of the server side?

When I using this command: myFile.OPEN(‘C:\NavImports\Artikelregistervård.txt’);

The CodeUnit is searching for the file on the serverside, I need to search on the Clients PC.

I can’t use \server\share\NavImports. The RTC client cannot reach the Nav server.

Best regards,

Daniel

for this you need upload the file to temporary path of server and use the temporary path for Open…

Look at Codeunit 419 for some functions that can help you with File Management in a three tiered environment.