Options

How To replace file record in AL extensions ?

Brax007Brax007 Member Posts: 26
Hi everyone,

I'm discovering the AL extensions recently and I came across a problem when converting CAL to AL.
The problem is that I cant use File rec anymore so how can I replace it? this is an exemple of an obsolete code in the AL code :

procedure CheckPathExist(PathToCheck_P: Text[1024]): Boolean
var
File_L: Record File; (The type or method 'File' cannot be used for 'Extension' development)
begin
File_L.RESET;
File_L.SETFILTER(Path, PathToCheck_P);
File_L.SETRANGE("Is a file", FALSE);
IF File_L.ISEMPTY THEN
EXIT(FALSE)
ELSE
EXIT(TRUE);

end;

Thanks in advance! :)

Answers

  • Options
    TallyHoTallyHo Member Posts: 383
    Try adding
    "target": "Internal",
    to app.json when you are using the on premise version
  • Options
    Brax007Brax007 Member Posts: 26
    I'm using the on premise version
  • Options
    TallyHoTallyHo Member Posts: 383
    edited 2019-04-19
    And was it the solution, or is file rec still not available?
Sign In or Register to comment.