Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Custom API

(1) ShareShare
ReportReport
Posted on by 106
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.
 
Thanks,
Dave
 
  • Suggested answer
    YUN ZHU Profile Picture
    78,989 Super User 2025 Season 1 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.
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    26,797 Super User 2025 Season 1 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
    14,312 Super User 2025 Season 1 on at
    Custom API
    Hi,
     
    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. 
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    Mohana Yadav Profile Picture
    60,199 Super User 2025 Season 1 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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,043 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,864 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans