web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Looping through files on client side

(0) ShareShare
ReportReport
Posted on by 259

Hey,

is it possible to loop through files on client side?

We have a situation, where client and server runs on different environments. We want to somehow upload the files from client side to the server, and from there the server takes care of it. But how can we find the path on client side loop through it and upload it to the server?. we looked at codeunit 419 file management, but could not find any solution. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Andrey Baludin Profile Picture
    3,941 on at

    Hi.

    File loop can be organized next way:

    FileManagement.GetClientDirectoryFilesList(NameValueBuffer, FilesFolderPath);
    
    IF NameValueBuffer.FINDSET THEN REPEAT
    
    //Do something with file NameValueBuffer.Name
    
    FileManagement.DeleteClientFile(NameValueBuffer.Name);
    
    UNTIL NameValueBuffer.NEXT() = 0;

    Where FileManagement - codeunit 419

    NameValueBuffer - table 823

    FilesFolderPath - path to your files

  • lynix_x Profile Picture
    259 on at

    Big thanks Andrey, that helped

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans