Skip to main content



No record found.

Business Central forum
Suggested answer

Custom API

Posted on by 74
I'm just getting into looking at how to create a Custom API. I have a few questions to see if you can point me into the right direction.
1. Using VSCode with the AL extension at some point the new tables and code need to be published.
Where do the tables and  AL code get published to. In order words what environment onPrem or Cloud does the code get executed from?
Right now I'm using the free BC cloud version.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 64,374 Super User on at
    Custom API
    Hi, If you are using the free BC cloud version and publish directly from VS Code, it will be installed to the environment specified in the launch.json file.
    For example,
    You can find it on the page below once it is installed.
    Hope this helps.
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 7,792 Super User on at
    Custom API
    You have to upload your AL code as an extension into the cloud version of BC. If its a sandbox environment you can upload the extension directly from VSCode or by uploading the extension .app file in the application, if its a production environment - you have to upload it using the .app file. 
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 14,611 User Group Leader on at
    Custom API
    The code will execute from the environment where you publish and install your extension.
    If you install extension in SaaS it will run from SaaS otherwise if you install extension in on Prem it will run from on Prem environment. 
    Saurav Dhyani
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 50,662 Super User on at
    Custom API
    You have to upload the app file to environment that you want once you have completed your custom API created and App file generated in VS Code.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans