About a year ago I wrote an article on the new features that Microsoft introduced on Business Central Admin Center. This time, in this blog post, I will focus on Microsoft BC API for admin center, introduced with version 20. In this blog post I am going to present a PowerShell script that copies a Business Central Production environment into a Sandbox and deletes the sandbox created the day before. Moreover, I will look into adding Telemetry to these 2 operations.
Tag Archives: Environment
The preview environment for Dynamics 365 Business Central 2022 release wave 2 (BC21) is available
The public preview environment for Dynamics 365 Business Central 2022 release wave 2 (BC21) is available now.
Environment Cleanup, do your users a favour!
What happens, behind the scene when an environment is copied, how do we prevent rogue code execution in the copy? In this video, I show how you should prepare your code for environment copying. Check it out:
Are your web service calls getting blocked by the environment?
Using outgoing web service calls can be blocked. Check this video to figure out how to handle this gracefully:
Business Central SaaS Environment Triggers
So – thanks to my colleague Márton Sági (the AL Studio guy ;-)), I came across a quite interesting, but highly under-documented ability today in Business Central. One that makes the below post purely based on assumptions ;-), since it’s undocumented, and resides only in the platform part of Business Central (so there isn’t much code to drill down into ;-)).
Which API’s are available in my Business Central environment?
Well, if you want, you can get that info from a system-table. Namely table “API Web Service”, which is table 2000000193. So, if you would add “?table=2000000193” in the URL .. you’d get a list of all available APIs :-).
Running tests in Business Central Online Sandbox environments
For quite some time, it has been possible to run automated tests in Docker using the Run-TestsInBcContainer function and it is my strong belief that this is used by a lot of partners today. Since 17.2, the Test Runner is available in Online Business Central Sandbox environments for installation from AppSource. From Extension Marketplace, you can install the Test Runner, open page 130451 and run your test manually. With BcContainerHelper 2.0.4 or later, you can also run tests in online sandbox environments, this blog post explains how.