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

  • lynix_x Profile Picture
    259 on at
    RE: Looping through files on client side

    Big thanks Andrey, that helped

  • Verified answer
    Andrey Baludin Profile Picture
    3,941 on at
    RE: Looping through files on client side

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans