How to dynamically create a new folder from AL Business Central?

elushkaelushka Member Posts: 7
I have a problem working with AL on Business Central. I have to create new folder to a path on server. At C/AL i found that this can be done with Automation data type but on AL this is deprecated. Anyone can help.

Thanks :smile:

Answers

  • TallyHoTallyHo Member Posts: 383
    Forget automation.
    I presume the business central service is installed onpremise.
    Set "target": "Internal" in app.json.
    After that you can use codeunit 419 to create folders.
    (ServerCreateDirectory).
  • elushkaelushka Member Posts: 7
    Thanks @TallyHo, i have used the BC onpremise and it works but now we are going to BC on Cloud and this does not work. I thought there is something that can handle that.
  • TallyHoTallyHo Member Posts: 383
    edited 2019-04-18
    I have no experience in cloud BC usage. But I can imagine that creating a folder in a cloud environment is a bit troublesome. What server? We're in a cloud.. Transforming the file exchange to webservices is probably the way to go.
Sign In or Register to comment.