I'm trying to get list of files from a directory in D365 Business central (Cloud), I don't know how can i get those files paths.
In Dynamics NAV we can get all files path dynamically using this record var "File" like below code.
Var
FileRec: Record File;
FileRec.RESET;
FileRec.SETRANGE(Path,'E:\Dynamically\');
FileRec.SETRANGE("Is a file",TRUE);
IF FileRec.FINDSET THEN BEGIN
REPEAT
MESSAGE(FileRec.Name);
UNTIL FileRec.NEXT =0;
END;
O/P of above code:
'E:\Dynamically\1.txt'
'E:\Dynamically\2.txt'
'E:\Dynamically\3.txt'
So, Is there any way to do this into D365 BC(SaaS)?