web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Correct approach for application written for BC OnPrem to the cloud?

(0) ShareShare
ReportReport
Posted on by 447

Hi All,
We faced the error "implemented cloud is not cloud-optimized", thus we added the granule to the license for our endusers, but now, we would like to make our code cloud compatible, thus I have to rewrite the code of our application to be cloud compatible, and still usable for OnPrem deployment. So, the code has to be written for the cloud, but it will work also on OnPrem deployment. Is this correct?

I have some ideas what to do for an app to be cloud compatible, but still I cannot find the exact steps what has to be changed in the code and objects, so that the app is cloud compatible, for example:

1. app.json file -> change the property "target":"OnPrem" -> "target":"Cloud"

2. everywhere where we are referring our code [OnPrem] has to be commented.

2. all .nets have to be replaced with the Azure Functions or some 3rd party application with the use of WebService to handle .net code.

3. for any file storage in the FTP has to be switched to the OneDrive or Sharepoint. We will not store files directly in the BLOB fields in the database, anymore.

4. any custom table fields have to be written with prefix "Rec." => Rec."FieldName"

Is the procedure exactly the same as when I am writting the custom code on BC SaaS Sandbox environment?

Thank you

BR Damjan

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    hi

    look this

    learn.microsoft.com/.../migrate-data

    DAniele

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    You should start by implementing the code analysis tool in your applications. Those will make sure you are cloud compliant.

    You can also use them if you want to put your app on AppSourse.

    learn.microsoft.com/.../devenv-using-code-analysis-tool-with-rule-set

    You will also find lots of useful information here.

    learn.microsoft.com/.../readiness-ready-to-go

    Especially look at the links around al-go for gihub.

    github.com/.../al-go-appsource

    github.com/.../al-go-pte

  • Suggested answer
    YUN ZHU Profile Picture
    98,337 Super User 2026 Season 1 on at

    Hi, Yes, as long as the version is the same, the code you write for SaaS can be installed on On-Pre. The SaaS version is updated at any time, and On-Pre is updated monthly and needs to be manually upgraded.

    Generally, developers will choose Docker, but there is no problem in developing in SaaS Sandbox.

    Hope this helps as well.

    Thanks.

    ZHU

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans