File System in Extention Programming Dynamics BC Wave 2

FirasFiras Posts: 8Member
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 Posts: 283Member
    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 Posts: 8Member
    That was a very useful tip , thankyou.
    Firas

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