File System in Extention Programming Dynamics BC Wave 2

FirasFiras Member Posts: 25
Hello
How can transfer the below code to Extension code?

Regards
Firas



/Var
//Filesystem :File

CLEAR(Filesystem);
Filesystem.SETRANGE("Is a file",TRUE);
Filesystem.SETFILTER(Path,'C:\FilePlace');
Filesystem.SETRANGE(Name); //Update virtual tabel
Filesystem.SETFILTER(Name,'',' *.xml');

IF Filesystem.FINDSET(FALSE,FALSE) THEN Repeat
Until FileSystem.next = 0;
Firas

Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant

Answers

  • Wisa123Wisa123 Member Posts: 308
    Hi,

    If you are building an extension targeted for OnPrem you can use DotNet classes/types such as FileInfo.

    If you target the SaaS Environment there is no such thing as files and drives. In that case you might want to investigate how Azure BlobStorage or other similar solutions can help you solve your problem.

    /Wisa
    Austrian NAV/BC Dev
  • FirasFiras Member Posts: 25
    That was a very useful tip , thankyou.
    Firas

    Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant
Sign In or Register to comment.