Options

AL code - use file saved within AL project folder in the code

PurpleHazePurpleHaze Member Posts: 42
edited 2021-11-05 in NAV Three Tier
Hey y`all,

Might be a dull question (Google didn`t help either), is it possible to use/reference a file (let`s say RapidStart package) which is stored within an AL project in a separate folder, and import it from code?

Thanks a lot in advance.

Answers

  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    So you want to execute the entire Rapid Start process via code?
  • Options
    PurpleHazePurpleHaze Member Posts: 42
    edited 2021-11-04
    Just to import it basically, for example OnInstall trigger I would like to import a RapidStart package (which would be included/saved in my extension package) - with relative path or something like that.
  • Options
    PurpleHazePurpleHaze Member Posts: 42
    edited 2021-11-05
    Please don`t get cofused with RapidStart, it can be any type of file.
    Let`s say I have a .txt file included in my AL project folder and I want to ship it together with my extension (.app) and reach it via code OnInstallAppPerCompany with "relative path" pointing to the file or something like that...

    Would something like that be actually possible?
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    I have had used these triggers but never utilized these for any processes wherein we have file dependency.

    What is the error you getting right now?
  • Options
    PurpleHazePurpleHaze Member Posts: 42
    Well, there is no error :) since I`m not sure how to point to/consume the file (included in my AL project) from code...
Sign In or Register to comment.